 |
 |
 |
 |
| 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 |
|
|