#include <AsyncAudioSplitter.h>
Definition at line 116 of file AsyncAudioSplitter.h.
Async::AudioSplitter::AudioSplitter | ( | void | ) |
Default constuctor.
Async::AudioSplitter::~AudioSplitter | ( | void | ) |
Destructor.
void Async::AudioSplitter::addSink | ( | AudioSink * | sink, | |
bool | managed = false | |||
) |
Add an audio sink to the splitter.
sink | The sink object to add | |
managed | If managed is true the attached sink will be deleted when the splitter is deleted |
void Async::AudioSplitter::enableSink | ( | AudioSink * | sink, | |
bool | enable | |||
) |
Enable or disable audio output to the given audio sink.
sink | The audio sink to enable/disable | |
enable | Set to true to enable the sink or false to disable it |
void Async::AudioSplitter::flushSamples | ( | void | ) | [virtual] |
Tell the sink to flush the previously written samples.
This function is used to tell the sink to flush previously written samples. When done flushing, the sink should call the sourceAllSamplesFlushed function. This function is normally only called from a connected source object.
Reimplemented from Async::AudioSink.
void Async::AudioSplitter::removeAllSinks | ( | void | ) |
Remove all audio sinks from this splitter.
void Async::AudioSplitter::removeSink | ( | AudioSink * | sink | ) |
Remove an audio sink from the splitter.
sink | The sink object to remove |
int Async::AudioSplitter::writeSamples | ( | const float * | samples, | |
int | len | |||
) | [virtual] |
Write samples into this audio sink.
samples | The buffer containing the samples | |
len | The number of samples in the buffer |
Reimplemented from Async::AudioSink.
friend class Branch [friend] |
Definition at line 197 of file AsyncAudioSplitter.h.