 |
 |
 |
 |
Name |
|
jump() |
 |
|
|
Examples |
|
BSound clong;
void setup() {
clong = loadSound("clong.wav");
repeat(clong);
}
void loop() {
if (mousePressed) {
jump(clong, 0); // Go to the start of the sound
}
}
|
|
|
Description |
|
During playback, jump() will change the position of the current audio sample to the desired position. This could be useful to rewind, forward or skip during the playback of an audio file. |
 |
|
|
Syntax |
|
jump(sound, pos)
|
 |
|
|
Parameters |
|
sound |
|
BSound: sound to be used
|
pos |
|
int: number of the audio sample in the sound object to jump to
|
|
 |
|
|
Usage |
|
Web & Application |
 |
|
|
Related |
|
play() pause() stop() |
|