RTP Audio System
2.0.0
|
Audio Writer Interface. More...
#include <audiowriterinterface.h>
Public Member Functions | |
virtual bool | ready () const =0 |
virtual void | sync ()=0 |
virtual bool | write (const void *data, const size_t length)=0 |
Audio Writer Interface.
This class is the interface for an audio writer.
virtual bool AudioWriterInterface::ready | ( | ) | const [pure virtual] |
Check, if AudioWriter is ready for writing.
Implemented in AudioDevice, MultiAudioWriter, SpectrumAnalyzer, AudioDebug, and AudioNull.
virtual void AudioWriterInterface::sync | ( | ) | [pure virtual] |
Reset the writer. All data in the output buffer should be removed without writing. Usage example: AudioDevice sends ioctl SNDCTL_DSP_SYNC.
Implemented in AudioDevice, MultiAudioWriter, SpectrumAnalyzer, AudioDebug, and AudioNull.
virtual bool AudioWriterInterface::write | ( | const void * | data, |
const size_t | length | ||
) | [pure virtual] |
Write data.
data | Data to be written. |
Implemented in AudioDevice, MultiAudioWriter, SpectrumAnalyzer, AudioDebug, and AudioNull.