class AudioEncoderRepository

Audio Encoder Repository. More...

Full nameCoral::AudioEncoderRepository
Definition#include <audioencoderrepository.h>
InheritsCoral::AudioEncoderInterface [virtual public], Coral::EncoderRepositoryInterface [virtual public]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

This class is a repository for audio encoders.

 AudioEncoderRepository ()

Constructor.

AudioEncoderRepository ()

Destructor.

bool  addEncoder (AudioEncoderInterface* encoder)

Add audio encoder to repository.

Parameters:
encoderNew audio encoder to be added.

Returns: true, if encoder has been added; false, if not.

void  removeEncoder (AudioEncoderInterface* encoder)

Remove audio encoder from repository.

Parameters:
encoderAudio encoder to be removed.

bool  selectEncoderForTypeID (const card16 typeID)

selectEncoderForTypeID() implementation of EncoderRepositoryInterface.

Reimplemented from EncoderRepositoryInterface.

inline void  setAutoDelete (const bool on)

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

EncoderInterface*  getCurrentEncoder ()

[const]

getCurrentEncoder() implementation of EncoderRepositoryInterface.

Reimplemented from EncoderRepositoryInterface.

AudioEncoderInterface*  getCurrentAudioEncoder ()

[const]

Get AudioEncoderInterface of the current encoder.

Returns: Current encoder's AudioEncoderInterface.

const card16  getTypeID ()

[const]

getTypeID() implementation of EncoderInterface.

Reimplemented from EncoderInterface.

const char*  getTypeName ()

[const]

getTypeName implementation of EncoderInterface.

Reimplemented from EncoderInterface.

void  activate ()

activate() implementation of EncoderInterface.

Reimplemented from EncoderInterface.

void  deactivate ()

deactivate() implementation of EncoderInterface.

Reimplemented from EncoderInterface.

void  reset ()

reset() implementation of EncoderInterface.

Reimplemented from EncoderInterface.

bool  prepareNextFrame (const cardinal headerSize, const cardinal maxPacketSize, const cardinal flags)

prepareNextFrame() implementation of EncoderInterface.

Reimplemented from EncoderInterface.

cardinal  getNextPacket (EncoderPacket* encoderPacket)

getNextPacket() implementation of EncoderInterface.

Reimplemented from EncoderInterface.

void  adaptQuality (const double fractionLost, const cardinal layer)

adaptQuality() implementation of EncoderInterface.

Reimplemented from EncoderInterface.

void  getTransportInfo (TransportInfo& transportInfo, const cardinal headerSize, const cardinal maxPacketSize, const bool calculateLevels)

[const]

getTransportInfo() implementation of EncoderInterface.

Reimplemented from EncoderInterface.

void  setTransportInfo (TransportInfo& transportInfo, const cardinal headerSize, const cardinal maxPacketSize, const bool calculateLevels)

setTransportInfo() implementation of EncoderInterface.

Reimplemented from EncoderInterface.

card16  getSamplingRate ()

[const]

getSamplingRate() implementation of AudioEncoderInterface

card8  getBits ()

[const]

getBits() implementation of AudioEncoderInterface

card8  getChannels ()

[const]

getChannels() implementation of AudioEncoderInterface

card16  getByteOrder ()

[const]

getByteOrder() Implementation of AudioEncoderInterface.

cardinal  getBytesPerSecond ()

[const]

getBytesPerSecond() implementation of AudioEncoderInterface.

cardinal  getBitsPerSample ()

[const]

getBitsPerSample() implementation of AudioEncoderInterface.

card16  setSamplingRate (const card16 rate)

setSamplingRate() implementation of AudioEncoderInterface

card8  setBits (const card8 bits)

setBits() implementation of AudioEncoderInterface

card8  setChannels (const card8 channels)

setChannels() implementation of AudioEncoderInterface

card16  setByteOrder (const card16 byteOrder)

setByteOrder() Implementation of AudioEncoderInterface.