#include <AsyncAudioDelayLine.h>
Definition at line 117 of file AsyncAudioDelayLine.h.
Async::AudioDelayLine::AudioDelayLine | ( | int | length_ms | ) | [explicit] |
Constuctor.
length_ms | The length in milliseconds of the delay line |
Async::AudioDelayLine::~AudioDelayLine | ( | void | ) |
Destructor.
void Async::AudioDelayLine::mute | ( | bool | do_mute, | |
int | time_ms = 0 | |||
) |
Mute audio.
do_mute | If true mute else unmute | |
time_ms | How much more time in milliseconds to mute (see below) |
void Async::AudioDelayLine::clear | ( | int | time_ms = -1 |
) |
Clear samples in the delay line.
time_ms | How long time in milliseconds to clear |
int Async::AudioDelayLine::writeSamples | ( | const float * | samples, | |
int | count | |||
) | [virtual] |
Write samples into the delay line.
samples | The buffer containing the samples | |
count | The number of samples in the buffer |
Reimplemented from Async::AudioSink.
void Async::AudioDelayLine::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::AudioDelayLine::resumeOutput | ( | void | ) | [virtual] |
Resume audio output to the sink.
This function must be reimplemented by the inheriting class. It will be called when the registered audio sink is ready to accept more samples. This function is normally only called from a connected sink object.
Reimplemented from Async::AudioSource.
void Async::AudioDelayLine::allSamplesFlushed | ( | void | ) | [virtual] |
The registered sink has flushed all samples.
This function must be implemented by the inheriting class. It will be called when all samples have been flushed in the registered sink. This function is normally only called from a connected sink object.
Reimplemented from Async::AudioSource.