Concrete Voice for processing audio with a callback function. More...
#include <Voice.h>
Public Member Functions | |
NodeRef | getInputNode () const override |
Returns the Node that is the source of this Voice's audio production. The Node type is determined by the Voice subclassed. More... | |
virtual void | start () |
Starts the Voice. Does nothing if currently playing. More... | |
virtual void | stop () |
Stops the Voice, resetting its state to the same as when it was created. More... | |
virtual void | pause () |
Pauses the Voice inits current state. start() will resume from here. More... | |
virtual bool | isPlaying () const |
Returns whether the Voice is currently playing or not. More... | |
virtual NodeRef | getOutputNode () const |
Returns the Node that is used for connected the Voice to the greater audio graph (by default, it is connected to Context::master()). More... | |
void | setVolume (float volume) |
void | setPan (float pos) |
float | getVolume () const |
float | getPan () const |
Static Public Member Functions | |
static VoiceSamplePlayerNodeRef | create (const SourceFileRef &sourceFile, const Options &options=Options()) |
Creates a Voice that manages sample playback of an audio file pointed at with sourceFile. More... | |
static VoiceRef | create (const CallbackProcessorFn &callbackFn, const Options &options=Options()) |
Creates a Voice that continuously calls callbackFn to process a Buffer of samples. More... | |
Protected Member Functions | |
VoiceCallbackProcessor (const CallbackProcessorFn &callbackFn, const Options &options) | |
Protected Attributes | |
CallbackProcessorNodeRef | mNode |
Friends | |
class | Voice |
Concrete Voice for processing audio with a callback function.
|
protected |
|
overridevirtual |
Returns the Node that is the source of this Voice's audio production. The Node type is determined by the Voice subclassed.
Implements cinder::audio::Voice.
|
staticinherited |
Creates a Voice that manages sample playback of an audio file pointed at with sourceFile.
|
staticinherited |
|
virtualinherited |
Starts the Voice. Does nothing if currently playing.
Reimplemented in cinder::audio::VoiceSamplePlayerNode.
|
virtualinherited |
Stops the Voice, resetting its state to the same as when it was created.
Reimplemented in cinder::audio::VoiceSamplePlayerNode.
|
virtualinherited |
|
virtualinherited |
Returns whether the Voice is currently playing or not.
|
virtualinherited |
Returns the Node that is used for connected the Voice to the greater audio graph (by default, it is connected to Context::master()).
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
friend |
|
protected |