RTP Audio System  2.0.0
AudioEncoderRepository Class Reference

Audio Encoder Repository. More...

#include <audioencoderrepository.h>

Inheritance diagram for AudioEncoderRepository:
EncoderRepositoryInterface AudioEncoderInterface EncoderInterface EncoderInterface AdjustableAudioQualityInterface AudioQualityInterface

List of all members.

Public Member Functions

 AudioEncoderRepository ()
 ~AudioEncoderRepository ()
bool addEncoder (AudioEncoderInterface *encoder)
void removeEncoder (AudioEncoderInterface *encoder)
bool selectEncoderForTypeID (const card16 typeID)
void setAutoDelete (const bool on)
EncoderInterfacegetCurrentEncoder () const
AudioEncoderInterfacegetCurrentAudioEncoder () const
const card16 getTypeID () const
const char * getTypeName () const
void activate ()
void deactivate ()
void reset ()
bool checkInterval (card64 &time, bool &newRUList)
bool prepareNextFrame (const cardinal headerSize, const cardinal maxPacketSize, const cardinal flags)
cardinal getNextPacket (EncoderPacket *encoderPacket)
card16 getSamplingRate () const
card8 getBits () const
card8 getChannels () const
card16 getByteOrder () const
cardinal getBytesPerSecond () const
cardinal getBitsPerSample () const
card16 setSamplingRate (const card16 rate)
card8 setBits (const card8 bits)
card8 setChannels (const card8 channels)
card16 setByteOrder (const card16 byteOrder)
double getFrameRate () const
AbstractQoSDescriptiongetQoSDescription (const cardinal pktHeaderSize, const cardinal pktMaxSize, const card64 offset)
void updateQuality (const AbstractQoSDescription *aqd)

Private Attributes

std::multimap< const card16,
AudioEncoderInterface * > 
Repository
AudioEncoderInterfaceEncoder
bool AutoDelete

Detailed Description

Audio Encoder Repository.

This class is a repository for audio encoders.

Author:
Thomas Dreibholz
Version:
1.0

Constructor & Destructor Documentation


Member Function Documentation

Add audio encoder to repository.

Parameters:
encoderNew audio encoder to be added.
Returns:
true, if encoder has been added; false, if not.
bool AudioEncoderRepository::checkInterval ( card64 time,
bool &  newRUList 
) [virtual]
AbstractQoSDescription * AudioEncoderRepository::getQoSDescription ( const cardinal  pktHeaderSize,
const cardinal  pktMaxSize,
const card64  offset 
) [virtual]
const card16 AudioEncoderRepository::getTypeID ( ) const [virtual]
const char * AudioEncoderRepository::getTypeName ( ) const [virtual]

getTypeName implementation of EncoderInterface.

See also:
EncoderInterface::getTypeName

Implements EncoderInterface.

bool AudioEncoderRepository::prepareNextFrame ( const cardinal  headerSize,
const cardinal  maxPacketSize,
const cardinal  flags 
) [virtual]

Remove audio encoder from repository.

Parameters:
encoderAudio encoder to be removed.
void AudioEncoderRepository::reset ( ) [virtual]

reset() implementation of EncoderInterface.

See also:
EncoderInterface::reset

Implements EncoderInterface.

void AudioEncoderRepository::setAutoDelete ( const bool  on) [inline]

Set AutoDelete mode. If true, all encoders will be deleted with delete operator by the destructor.


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