RTP Audio System  2.0.0
SimpleAudioEncoder Class Reference

Simple Audio Encoder. More...

#include <simpleaudioencoder.h>

Inheritance diagram for SimpleAudioEncoder:
AudioEncoderInterface AudioQuality EncoderInterface AdjustableAudioQualityInterface AdjustableAudioQualityInterface AudioQualityInterface AudioQualityInterface

List of all members.

Public Member Functions

 SimpleAudioEncoder (AudioReaderInterface *audioReader)
 ~SimpleAudioEncoder ()
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)
double getFrameRate () const
AbstractQoSDescriptiongetQoSDescription (const cardinal pktHeaderSize, const cardinal pktMaxSize, const card64 offset)
void updateQuality (const AbstractQoSDescription *aqd)

Private Attributes

AudioReaderInterfaceSource
card8FrameBuffer
cardinal FrameBufferPos
cardinal FrameBufferSize
card64 FramePosition
card64 FrameMaxPosition
AudioQuality FrameQualitySetting
integer MediaInfoCounter
card64 ByteRateLimit
cardinal NetworkQualityDecrement
cardinal SendError
card8 ErrorCode

Detailed Description

Simple Audio Encoder.

This class is an simple audio encoder. It does no error correction or redundant transmission.

Author:
Thomas Dreibholz
Version:
1.0

Constructor & Destructor Documentation

Constructor for the audio encoder.

Parameters:
audioReaderAudioReaderInterface for the audio input.

Member Function Documentation

void SimpleAudioEncoder::activate ( ) [virtual]
bool SimpleAudioEncoder::checkInterval ( card64 time,
bool &  newRUList 
) [virtual]
double SimpleAudioEncoder::getFrameRate ( ) const [virtual]
AbstractQoSDescription * SimpleAudioEncoder::getQoSDescription ( const cardinal  pktHeaderSize,
const cardinal  pktMaxSize,
const card64  offset 
) [virtual]
const card16 SimpleAudioEncoder::getTypeID ( ) const [virtual]
const char * SimpleAudioEncoder::getTypeName ( ) const [virtual]

getTypeName implementation of EncoderInterface.

See also:
EncoderInterface::getTypeName

Implements EncoderInterface.

bool SimpleAudioEncoder::prepareNextFrame ( const cardinal  headerSize,
const cardinal  maxPacketSize,
const cardinal  flags 
) [virtual]
void SimpleAudioEncoder::reset ( ) [virtual]

reset() implementation of EncoderInterface.

See also:
EncoderInterface::reset

Implements EncoderInterface.


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