#include <dynacodec.h>
Public Member Functions | |
OpalDynaAudioCodec (const OpalDLLCodecRec &_info, Direction direction) | |
~OpalDynaAudioCodec () | |
virtual BOOL | EncodeFrame (BYTE *buffer, unsigned &length) |
virtual BOOL | DecodeFrame (const BYTE *buffer, unsigned length, unsigned &written) |
Protected Attributes | |
const OpalDLLCodecRec & | info |
void * | context |
unsigned | samplesPerFrame |
unsigned | bytesPerFrame |
OpalDynaAudioCodec::OpalDynaAudioCodec | ( | const OpalDLLCodecRec & | _info, | |
Direction | direction | |||
) |
OpalDynaAudioCodec::~OpalDynaAudioCodec | ( | ) |
virtual BOOL OpalDynaAudioCodec::EncodeFrame | ( | BYTE * | buffer, | |
unsigned & | length | |||
) | [virtual] |
Encode a sample block into the buffer specified. The samples have been read and are waiting in the readBuffer member variable. it is expected this function will encode exactly bytesPerFrame bytes.
Implements H323FramedAudioCodec.
virtual BOOL OpalDynaAudioCodec::DecodeFrame | ( | const BYTE * | buffer, | |
unsigned | length, | |||
unsigned & | written | |||
) | [virtual] |
Reimplemented from H323FramedAudioCodec.
const OpalDLLCodecRec& OpalDynaAudioCodec::info [protected] |
void* OpalDynaAudioCodec::context [protected] |
unsigned OpalDynaAudioCodec::samplesPerFrame [protected] |
Reimplemented from H323AudioCodec.
unsigned OpalDynaAudioCodec::bytesPerFrame [protected] |
Reimplemented from H323FramedAudioCodec.