OPAL
Version 3.10.4
|
#include <frame.h>
Public Types | |
enum | AudioSc { g7231 = 1, gsm = 2, g711ulaw = 4, g711alaw = 8, mp3 = 0x10, adpcm = 0x20, pcm = 0x40, lpc10 = 0x80, g729 = 0x100, speex = 0x200, ilbc = 0x400, supportedCodecs = 11 } |
Public Member Functions | |
IAX2FullFrameVoice (const IAX2Frame &srcFrame) | |
IAX2FullFrameVoice (const IAX2FullFrame &srcFrame) | |
IAX2FullFrameVoice (IAX2CallProcessor *processor, PBYTEArray &sound, PINDEX usersTimeStamp=0) | |
virtual | ~IAX2FullFrameVoice () |
virtual PString | GetSubClassName () const |
virtual BYTE | GetFullFrameType () |
Static Public Member Functions | |
static PString | GetSubClassName (unsigned short testValue) |
static PString | GetSubClassName (unsigned int testValue) |
static PString | GetOpalNameOfCodec (PINDEX testValue) |
static PString | GetSubClassName (int testValue) |
static unsigned short | OpalNameToIax2Value (const PString opalName) |
Used for transmitting voice packets in a relaible fashion. Typically, one is sent at the start of the call, and then at regular intervals in the call to keep the timestamps in sync.
This class has the ability to build audio codecs, and report on available formats.
The contents the data section is the compressed audio frame.
enum comtaining the possible (uncompressed) subclass value for these voice frames
IAX2FullFrameVoice::IAX2FullFrameVoice | ( | const IAX2Frame & | srcFrame | ) |
Construction from a supplied dataframe. In this case, this class is filled from an incoming data packet
IAX2FullFrameVoice::IAX2FullFrameVoice | ( | const IAX2FullFrame & | srcFrame | ) |
Construction from a supplied dataframe. In this case, this class is filled from an incoming data packet
IAX2FullFrameVoice::IAX2FullFrameVoice | ( | IAX2CallProcessor * | processor, |
PBYTEArray & | sound, | ||
PINDEX | usersTimeStamp = 0 |
||
) |
Construction from an encoded audio array (stored in a PBYTEArray), in preparation to sending to remote node. The constructor will not delete the supplied PBYTEArray structure.
The full frame will use the specified timeStamp, if it is > 0. If the specified timeStamp == 0, the timeStamp will be calculated from when the call started.
virtual IAX2FullFrameVoice::~IAX2FullFrameVoice | ( | ) | [virtual] |
Declare an empty destructor
virtual BYTE IAX2FullFrameVoice::GetFullFrameType | ( | ) | [inline, virtual] |
Return the IAX2FullFrame type represented here (voice, protocol, session etc
Reimplemented from IAX2FullFrame.
References IAX2Frame::voiceType.
static PString IAX2FullFrameVoice::GetOpalNameOfCodec | ( | PINDEX | testValue | ) | [static] |
Get text description of the subclass contents, given the supplied argument. The name returned is that recoginised by the OPAL library.
virtual PString IAX2FullFrameVoice::GetSubClassName | ( | ) | const [virtual] |
Get text description of the subclass contents
Reimplemented from IAX2FullFrame.
static PString IAX2FullFrameVoice::GetSubClassName | ( | unsigned short | testValue | ) | [inline, static] |
Get text description of the subclass contents, given the supplied argument
References GetSubClassName().
Referenced by GetSubClassName().
static PString IAX2FullFrameVoice::GetSubClassName | ( | unsigned int | testValue | ) | [static] |
Get text description of the subclass contents, given the supplied argument
static PString IAX2FullFrameVoice::GetSubClassName | ( | int | testValue | ) | [inline, static] |
Get text description of the subclass contents, given the supplied argument
References GetSubClassName().
Referenced by GetSubClassName().
static unsigned short IAX2FullFrameVoice::OpalNameToIax2Value | ( | const PString | opalName | ) | [static] |
Turn the OPAL string (which describes the codec) into a AudioSc value. If there is no conversion found, return 0.