#include <AsyncAudioRecorder.h>
Definition at line 118 of file AsyncAudioRecorder.h.
Async::AudioRecorder::AudioRecorder | ( | const std::string & | filename, | |
AudioRecorder::Format | format = FMT_RAW , |
|||
int | sample_rate = 0 | |||
) | [explicit] |
Default constuctor.
filename | The name of the file to record audio to | |
format | The file format ( |
sample_rate | The sample rate (only needed for format != FMT_RAW) |
Async::AudioRecorder::~AudioRecorder | ( | void | ) |
Destructor.
virtual void Async::AudioRecorder::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.
bool Async::AudioRecorder::initialize | ( | void | ) |
Initialize the recorder.
virtual int Async::AudioRecorder::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.