| 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 |  | ### loadSound()
Examples |  |
    BSound clong;
    void setup() {
      clong = loadSound("clong.wav");
      repeat(clong);
    }
Description |  | Loads a sound into a variable of type BSound. Both .wav and .au sound files may be loaded. To load correctly, sound must be located in the data directory of the current sketch. Sounds are resampled when loaded, conserving their original duration, but at the same sampling rate of the sonic engine.
Syntax |  |
    loadSound(filename)
Parameters |  |
filename |  | string: name of file to load
Returns |  | BSound
Usage |  | Web & Application
Related |  | BSound beginSound()

| © 2003- 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea |
| Processing is an open project initiated by Ben Fry and Casey Reas |