Language \ Environment \ Comparison
 
Index
 
  The Processing 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: reas at groupc.net
Name  

pause()

   
Examples  
BSound clong; 
 
void setup() { 
  clong = loadSound("clong.wav"); 
} 
 
void loop() { 
  if (mousePressed) { 
    pause(clong); // Pause sound while mouse is down 
  } else { 
    repeat(clong); 
  } 
} 

Description   Pauses a BSound or BVideo object during playback. If playback is resumed, it will start playing from the position where it was paused.
   
Syntax  
pause(object)
   
Parameters  
object   BSound or BVideo: object to be paused

   
Usage   Web & Application
   
Related   play()
repeat()
stop()
   
© 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas