class AudioWriterInterface

Audio Writer Interface. More...

Contains pure virtuals
Full nameCoral::AudioWriterInterface
Definition#include <audiowriterinterface.h>
InheritsCoral::AdjustableAudioQualityInterface [virtual public]
Inherited byAudioDebug, AudioDevice, AudioNull, MultiAudioWriter, SpectrumAnalyzer
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Members


Detailed Description

This class is the interface for an audio writer.

~AudioWriterInterface ()
[virtual]

Virtual destructor.

bool ready ()
[const pure virtual]

Check, if AudioWriter is ready for writing.

Returns: true, if AudioWriter is ready; false otherwise.

void 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.

bool write (const void* data, const size_t length)
[pure virtual]

Write data.

Parameters:
dataData to be written.

Returns: length Length of data in bytes.