RTP Audio System  2.0.0
MultiAudioWriter Class Reference

Multi Audio Writer. More...

#include <multiaudiowriter.h>

Inheritance diagram for MultiAudioWriter:
AudioWriterInterface Synchronizable AdjustableAudioQualityInterface AudioQualityInterface

List of all members.

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

Detailed Description

Multi Audio Writer.

This class implements AudioWriterInterface for a set of AudioWriterInterfaces. Example: AudioDevice + AudioDebug + SpectrumAnalyzer.

Author:
Thomas Dreibholz
Version:
1.0

Constructor & Destructor Documentation


Member Function Documentation

Add new AudioWriterInferface to writer set.

Parameters:
writerAudioWriterInterface object.
Returns:
true, if writer has been added; false otherwise.
bool MultiAudioWriter::ready ( ) const [virtual]

Remove AudioWriterInterface object from writer set.

card8 MultiAudioWriter::setBits ( const card8  bits) [virtual]

setBits() Implementation of AudioQualityInterface.

See also:
AudioQualityInterface::setBits

Implements AdjustableAudioQualityInterface.

card16 MultiAudioWriter::setByteOrder ( const card16  byteOrder) [virtual]

setByteOrder() Implementation of AudioQualityInterface.

See also:
AudioQualityInterface::setByteOrder

Implements AdjustableAudioQualityInterface.

card8 MultiAudioWriter::setChannels ( const card8  channels) [virtual]

setChannels() Implementation of AudioQualityInterface.

See also:
AudioQualityInterface::setChannels

Implements AdjustableAudioQualityInterface.

card16 MultiAudioWriter::setSamplingRate ( const card16  samplingRate) [virtual]

setSamplingRate() Implementation of AudioQualityInterface.

See also:
AudioQualityInterface::setSamplingRate

Implements AdjustableAudioQualityInterface.

void MultiAudioWriter::sync ( ) [virtual]
bool MultiAudioWriter::write ( const void *  data,
const size_t  length 
) [virtual]

Member Data Documentation


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