Interface for performing high-level audio playback tasks.
A Voice is an abstraction of something you can hear, and as such they send audio to your computers output device. Currently supports file playback and processing audio with a callback function. Each Voice has controls for setting the volume and pan of its signal, and supports start() , stop() , and pause() functionality.
Underneath, playback is managed by a Node , which can be retrieved via the virtual getNode() method to perform more complex tasks.
Public Member Functions
Static Public Member Functions
create (const SourceFileRef &sourceFile, const Options &options=Options())
Creates a Voice that manages sample playback of an audio file pointed at with sourceFile .
Clears all audio file buffers that that are cached in the Mixer.