RTP Audio System  2.0.0
AudioDecoderRepository Class Reference

Audio Decoder Repository. More...

#include <audiodecoderrepository.h>

Inheritance diagram for AudioDecoderRepository:
DecoderRepositoryInterface AudioDecoderInterface DecoderInterface DecoderInterface AudioQualityInterface

List of all members.

Public Member Functions

 AudioDecoderRepository ()
 ~AudioDecoderRepository ()
bool addDecoder (AudioDecoderInterface *decoder)
void removeDecoder (AudioDecoderInterface *decoder)
bool selectDecoderForTypeID (const card16 typeID)
void setAutoDelete (const bool on)
DecoderInterfacegetCurrentDecoder () const
AudioDecoderInterfacegetCurrentAudioDecoder () const
const card16 getTypeID () const
const char * getTypeName () const
void activate ()
void deactivate ()
void reset ()
void getMediaInfo (MediaInfo &mediaInfo) const
card8 getErrorCode () const
card64 getPosition () const
card64 getMaxPosition () const
bool checkNextPacket (DecoderPacket *decoderPacket)
void handleNextPacket (const DecoderPacket *decoderPacket)
card8 getChannels () const
card8 getBits () const
card16 getSamplingRate () const
card16 getByteOrder () const
cardinal getBytesPerSecond () const
cardinal getBitsPerSample () const
AudioQuality getWantedQuality () const
void setWantedQuality (const AudioQualityInterface &wantedQuality)

Private Attributes

std::multimap< const card16,
AudioDecoderInterface * > 
Repository
AudioDecoderInterfaceDecoder
bool AutoDelete

Detailed Description

Audio Decoder Repository.

This class is a repository for audio decoders.

Author:
Thomas Dreibholz
Version:
1.0

Constructor & Destructor Documentation


Member Function Documentation

Add audio decoder to repository.

Parameters:
decoderNew audio decoder to be added.
Returns:
true, if decoder has been added; false, if not.
void AudioDecoderRepository::getMediaInfo ( MediaInfo mediaInfo) const [virtual]
const card16 AudioDecoderRepository::getTypeID ( ) const [virtual]
const char * AudioDecoderRepository::getTypeName ( ) const [virtual]

getTypeName implementation of DecoderInterface.

See also:
DecoderInterface::getTypeName

Implements DecoderInterface.

Remove audio decoder from repository.

Parameters:
decoderAudio decoder to be removed.
void AudioDecoderRepository::reset ( ) [virtual]

reset() implementation of DecoderInterface.

See also:
DecoderInterface::reset

Implements DecoderInterface.

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

Set AutoDelete mode. If true, all decoders 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