#include <AsyncAudioReader.h>
Definition at line 112 of file AsyncAudioReader.h.
Async::AudioReader::AudioReader | ( | void | ) |
Default constuctor.
Async::AudioReader::~AudioReader | ( | void | ) |
Destructor.
virtual void Async::AudioReader::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 sourceAllSamplesFlushed function will be called. This function is normally only called from a connected source object.
Reimplemented from Async::AudioSink.
int Async::AudioReader::readSamples | ( | float * | samples, | |
int | count | |||
) |
Read at most the specified number of samples.
samples | A buffer to put the read samples into | |
count | The maximum number of samples to read. This value must not be larger than the size of the "samples" buffer given in the first argument. |
virtual int Async::AudioReader::writeSamples | ( | const float * | samples, | |
int | count | |||
) | [virtual] |
Write samples into this audio sink.
samples | The buffer containing the samples | |
count | The number of samples in the buffer |
Reimplemented from Async::AudioSink.