RTP Audio System  2.0.0
AudioWriterInterface Class Reference

Audio Writer Interface. More...

#include <audiowriterinterface.h>

Inheritance diagram for AudioWriterInterface:
AdjustableAudioQualityInterface AudioQualityInterface AudioDebug AudioDevice AudioNull MultiAudioWriter SpectrumAnalyzer

List of all members.

Public Member Functions

virtual bool ready () const =0
virtual void sync ()=0
virtual bool write (const void *data, const size_t length)=0

Detailed Description

Audio Writer Interface.

This class is the interface for an audio writer.

Author:
Thomas Dreibholz
Version:
1.0

Member Function Documentation

virtual bool AudioWriterInterface::ready ( ) const [pure virtual]

Check, if AudioWriter is ready for writing.

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

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.

Parameters:
dataData to be written.
Returns:
length Length of data in bytes.

Implemented in AudioDevice, MultiAudioWriter, SpectrumAnalyzer, AudioDebug, and AudioNull.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines