Reference+
Name
cue()
Class
SoundFile
Description
Cues the playhead to a fixed position in the soundfile. Note that cue() only affects the playhead for future calls to play(), but not to loop().
Examples
import processing.sound.*; SoundFile file; void setup() { size(640, 360); background(255); // Load a soundfile from the /data folder of the sketch and play it back file = new SoundFile(this, "sample.mp3"); file.cue(3.5); file.play(); } void draw() { }
Syntax
soundfile.cue(time)
Parameters
time
(float)
position in the soundfile that the next playback should start from, in seconds.
Return
void
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.