#include <g726codec.h>
Inheritance diagram for H323_G726_Capability:
Public Types | |
e_40k | |
e_32k | |
e_24k | |
e_16k | |
NumSpeeds | |
enum | Speeds { e_40k, e_32k, e_24k, e_16k, NumSpeeds } |
Public Member Functions | |
Construction | |
H323_G726_Capability (const H323EndPoint &endpoint, Speeds speed) | |
Overrides from class PObject | |
virtual PObject * | Clone () const |
Identification functions | |
virtual PString | GetFormatName () const |
Protocol manipulation | |
virtual BOOL | OnSendingPDU (H245_AudioCapability &pdu, unsigned packetSize) const |
virtual BOOL | OnReceivedPDU (const H245_AudioCapability &pdu, unsigned &packetSize) |
Protected Attributes | |
Speeds | speed |
H323_G726_Capability::H323_G726_Capability | ( | const H323EndPoint & | endpoint, | |
Speeds | speed | |||
) |
Create a new G.726 capability.
endpoint | Endpoint to get NonStandardInfo from. |
speed | Speed of encoding |
virtual PObject* H323_G726_Capability::Clone | ( | ) | const [virtual] |
Create a copy of the object.
virtual PString H323_G726_Capability::GetFormatName | ( | ) | const [virtual] |
Get the name of the media data format this class represents.
Implements H323Capability.
virtual BOOL H323_G726_Capability::OnReceivedPDU | ( | const H245_AudioCapability & | pdu, | |
unsigned & | packetSize | |||
) | [virtual] |
This function is called whenever and incoming TerminalCapabilitySet or OpenLogicalChannel PDU has been used to construct the control channel. It allows the capability to set from the PDU fields, information in members specific to the class.
The default behaviour gets the data rate field from the PDU.
pdu | PDU to get information from |
packetSize | Packet size to use in capability |
Reimplemented from H323NonStandardAudioCapability.
virtual BOOL H323_G726_Capability::OnSendingPDU | ( | H245_AudioCapability & | pdu, | |
unsigned | packetSize | |||
) | const [virtual] |
This function is called whenever and outgoing TerminalCapabilitySet or OpenLogicalChannel PDU is being constructed for the control channel. It allows the capability to set the PDU fields from information in members specific to the class.
The default behaviour sets the data rate field in the PDU.
pdu | PDU to set information on |
packetSize | Packet size to use in capability |
Reimplemented from H323NonStandardAudioCapability.
Speeds H323_G726_Capability::speed [protected] |