FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Abridged (A-Z) \ Complete (A-Z)  
   
  Reference for Processing (BETA) version 91+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.  
Name  

loadSound()

   
Examples  
PSound soundA; 
 
void setup() { 
  soundA = loadSound("clong.wav"); 
  soundA.loop(); 
} 
 
void draw() { 
  // The blank draw() is necessary to let the sound play 
} 

Description   Loads a sound into a variable of type PSound. Only .wav sound files may be loaded. To load correctly, sound files must be located in the data directory of the current sketch.
   
Syntax  
loadSound(filename)
   
Parameters  
filename   String: name of file to load, must be .wav

   
Returns   PSound
   
Usage   Web & Application
   
Related   PSound
 
 






   
 
Updated: Fri Jul 15 16:35:44 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info