Vuo
1.2.0
|
VuoAudioFile interface.
Typedefs | |
typedef void * | VuoAudioFile |
A state object for firing display refresh events. | |
Functions | |
bool | VuoAudioFile_getInfo (VuoText url, VuoReal *duration, VuoInteger *channelCount, VuoReal *sampleRate) |
Returns information about the specified audio file. | |
VuoAudioFile | VuoAudioFile_make (VuoText url) |
Creates a new audio file decoder, and starts a decoding timer. | |
void | VuoAudioFile_enableTriggers (VuoAudioFile af, void(*decodedChannels)(VuoList_VuoAudioSamples), void(*finishedPlayback)(void)) |
Specifies a trigger callback to invoke when a new audio sample buffer is ready for playback. | |
void | VuoAudioFile_disableTriggers (VuoAudioFile af) |
When this function returns, the trigger callback will no longer be called. | |
void | VuoAudioFile_setLoopType (VuoAudioFile af, VuoLoopType loop) |
Sets the behavior upon reaching the end of the audio file. | |
void | VuoAudioFile_setTime (VuoAudioFile af, VuoReal time) |
Seeks the playhead to the specified time in the audio file. | |
void | VuoAudioFile_play (VuoAudioFile af) |
Starts or resumes playback of the audio file from the current playhead time. | |
void | VuoAudioFile_pause (VuoAudioFile af) |
Pauses playback of the audio file, leaving the playhead at its current time. | |
bool | VuoAudioFile_isPlaying (VuoAudioFile af) |
Returns true if the audio file is currently playing. | |
typedef void* VuoAudioFile |
A state object for firing display refresh events.
void VuoAudioFile_disableTriggers | ( | VuoAudioFile | af | ) |
When this function returns, the trigger callback will no longer be called.
Does not change playback status.
void VuoAudioFile_enableTriggers | ( | VuoAudioFile | af, |
void(*)(VuoList_VuoAudioSamples) | decodedChannels, | ||
void(*)(void) | finishedPlayback | ||
) |
Specifies a trigger callback to invoke when a new audio sample buffer is ready for playback.
Does not change playback status.
bool VuoAudioFile_getInfo | ( | VuoText | url, |
VuoReal * | duration, | ||
VuoInteger * | channelCount, | ||
VuoReal * | sampleRate | ||
) |
Returns information about the specified audio file.
Returns true
on success, false
if the file couldn't be read.
bool VuoAudioFile_isPlaying | ( | VuoAudioFile | af | ) |
Returns true
if the audio file is currently playing.
This is independent of whether a trigger callback is currently active.
VuoAudioFile VuoAudioFile_make | ( | VuoText | url | ) |
Creates a new audio file decoder, and starts a decoding timer.
<
<
void VuoAudioFile_pause | ( | VuoAudioFile | af | ) |
Pauses playback of the audio file, leaving the playhead at its current time.
void VuoAudioFile_play | ( | VuoAudioFile | af | ) |
Starts or resumes playback of the audio file from the current playhead time.
void VuoAudioFile_setLoopType | ( | VuoAudioFile | af, |
VuoLoopType | loop | ||
) |
Sets the behavior upon reaching the end of the audio file.
void VuoAudioFile_setTime | ( | VuoAudioFile | af, |
VuoReal | time | ||
) |
Seeks the playhead to the specified time in the audio file.