 |
 |
 |
 |
Name |
|
play() |
 |
|
|
Examples |
|
BSound laugh;
void setup() {
laugh = loadSound("laughing.wav");
play(laugh);
}
|
|
BSound count;
void setup() {
count = loadSound("123.wav");
play(count, 1000, 2000);
}
|
|
|
Description |
|
Starts to playback a BSound or BVideo object. Once the playback reaches the end of the sound, the playback stops. The start and end parameters are used to define from which sample or frame the playback should start, and at which it should end. If the object is currently playing, calling play() will not restart. |
 |
|
|
Syntax |
|
play(object)
play(object, start, end)
|
 |
|
|
Parameters |
|
object |
|
BSound or BVideo: the object to be played
|
start |
|
int: starting position
|
end |
|
int: position to end playback
|
|
 |
|
|
Usage |
|
Web & Application |
 |
|
|
Related |
|
repeat() pause() stop() |
|