RTP Audio System
2.0.0
|
Multi Audio Writer. More...
#include <multiaudiowriter.h>
Public Member Functions | |
MultiAudioWriter () | |
~MultiAudioWriter () | |
bool | addWriter (AudioWriterInterface *writer) |
void | removeWriter (AudioWriterInterface *writer) |
card16 | getSamplingRate () const |
card8 | getBits () const |
card8 | getChannels () const |
card16 | getByteOrder () const |
card16 | setSamplingRate (const card16 samplingRate) |
card8 | setBits (const card8 bits) |
card8 | setChannels (const card8 channels) |
card16 | setByteOrder (const card16 byteOrder) |
cardinal | getBytesPerSecond () const |
cardinal | getBitsPerSample () const |
bool | ready () const |
void | sync () |
bool | write (const void *data, const size_t length) |
Private Attributes | |
std::multiset < AudioWriterInterface * > | WriterSet |
card16 | AudioSamplingRate |
card8 | AudioBits |
card8 | AudioChannels |
card16 | AudioByteOrder |
Multi Audio Writer.
This class implements AudioWriterInterface for a set of AudioWriterInterfaces. Example: AudioDevice + AudioDebug + SpectrumAnalyzer.
Constructor.
Destructor.
bool MultiAudioWriter::addWriter | ( | AudioWriterInterface * | writer | ) |
Add new AudioWriterInferface to writer set.
writer | AudioWriterInterface object. |
card8 MultiAudioWriter::getBits | ( | ) | const [virtual] |
getBits() Implementation of AudioQualityInterface.
Implements AudioQualityInterface.
cardinal MultiAudioWriter::getBitsPerSample | ( | ) | const [virtual] |
getBitsPerSample() Implementation of AudioQualityInterface.
Implements AudioQualityInterface.
card16 MultiAudioWriter::getByteOrder | ( | ) | const [virtual] |
getByteOrder() Implementation of AudioQualityInterface.
Implements AudioQualityInterface.
cardinal MultiAudioWriter::getBytesPerSecond | ( | ) | const [virtual] |
getBytesPerSecond() Implementation of AudioQualityInterface.
Implements AudioQualityInterface.
card8 MultiAudioWriter::getChannels | ( | ) | const [virtual] |
getChannels() Implementation of AudioQualityInterface.
Implements AudioQualityInterface.
card16 MultiAudioWriter::getSamplingRate | ( | ) | const [virtual] |
getSamplingRate() Implementation of AudioQualityInterface.
Implements AudioQualityInterface.
bool MultiAudioWriter::ready | ( | ) | const [virtual] |
ready() implementation of AudioWriterInterface
Implements AudioWriterInterface.
void MultiAudioWriter::removeWriter | ( | AudioWriterInterface * | writer | ) |
Remove AudioWriterInterface object from writer set.
card8 MultiAudioWriter::setBits | ( | const card8 | bits | ) | [virtual] |
setBits() Implementation of AudioQualityInterface.
Implements AdjustableAudioQualityInterface.
card16 MultiAudioWriter::setByteOrder | ( | const card16 | byteOrder | ) | [virtual] |
setByteOrder() Implementation of AudioQualityInterface.
Implements AdjustableAudioQualityInterface.
card8 MultiAudioWriter::setChannels | ( | const card8 | channels | ) | [virtual] |
setChannels() Implementation of AudioQualityInterface.
Implements AdjustableAudioQualityInterface.
card16 MultiAudioWriter::setSamplingRate | ( | const card16 | samplingRate | ) | [virtual] |
setSamplingRate() Implementation of AudioQualityInterface.
Implements AdjustableAudioQualityInterface.
void MultiAudioWriter::sync | ( | ) | [virtual] |
sync() implementation of AudioWriterInterface
Implements AudioWriterInterface.
bool MultiAudioWriter::write | ( | const void * | data, |
const size_t | length | ||
) | [virtual] |
write() implementation of AudioWriterInterface
Implements AudioWriterInterface.
card8 MultiAudioWriter::AudioBits [private] |
card16 MultiAudioWriter::AudioByteOrder [private] |
card8 MultiAudioWriter::AudioChannels [private] |
card16 MultiAudioWriter::AudioSamplingRate [private] |
std::multiset<AudioWriterInterface*> MultiAudioWriter::WriterSet [private] |