Interface Track
access this type via: io.audio.Track (provides, requires or uses)
Audio track object. This interface wraps an audio source data instance, and allows you to control elements of the track's playback of that audio source.
Functions
Track(storeSource src)
void setFinishEvent(bool on)
void setVolume(int volume)
int getLengthFrames()
void setPosFrame(int frame)
int getPosFrame()
int getLengthMS()
void setPosMS(int ms)
int getPosMS()
Track(storeSource src)
Instantiate a new audio track, using the given audio source object.
void setFinishEvent(bool on)
Receive event notifications (through the audio output device) on which this track finishes playing. Default is false.
void setVolume(int volume)
Set the volume level for this track, which must be between 0 and 100.
int getLengthFrames()
Get the number of audio frames in this track.
void setPosFrame(int frame)
Set the read head of the track to the specified audio frame.
int getPosFrame()
Get the current audio frame index of the read head of this track.
int getLengthMS()
Get the length of this track in milliseconds.
void setPosMS(int ms)
Set the read head of the track to the specified millisecond time index.
int getPosMS()
Get the current millisecond index of the read head of this track.