OpenH323 1.18.0
|
#include <dynacodec.h>
Public Member Functions | |
OpalDynaCodecStandardAudioCapability (const OpalDLLCodecRec &_info, H323EndPoint &_endpoint, unsigned maxPacketSize, unsigned desiredPacketSize, unsigned subType) | |
BOOL | OnSendingPDU (H245_AudioCapability &cap, unsigned packetSize) const |
BOOL | OnReceivedPDU (const H245_AudioCapability &cap, unsigned &packetSize) |
PObject * | Clone () const |
H323Codec * | CreateCodec (H323Codec::Direction direction) const |
PString | GetFormatName () const |
unsigned | GetSubType () const |
Protected Attributes | |
const OpalDLLCodecRec & | info |
H323EndPoint & | endpoint |
unsigned | subType |
OpalDynaCodecStandardAudioCapability::OpalDynaCodecStandardAudioCapability | ( | const OpalDLLCodecRec & | _info, |
H323EndPoint & | _endpoint, | ||
unsigned | maxPacketSize, | ||
unsigned | desiredPacketSize, | ||
unsigned | subType | ||
) |
desiredPacketSize | Maximum size of an audio packet in frames |
subType | Desired transmit size of an audio packet in frames |
PObject* OpalDynaCodecStandardAudioCapability::Clone | ( | ) | const |
H323Codec* OpalDynaCodecStandardAudioCapability::CreateCodec | ( | H323Codec::Direction | direction | ) | const [virtual] |
Create the codec instance, allocating resources as required.
Implements H323Capability.
PString OpalDynaCodecStandardAudioCapability::GetFormatName | ( | ) | const [virtual] |
Get the name of the media data format this class represents.
Implements H323Capability.
unsigned OpalDynaCodecStandardAudioCapability::GetSubType | ( | ) | const [virtual] |
Get the sub-type of the capability. This is a code dependent on the main type of the capability.
Implements H323Capability.
BOOL OpalDynaCodecStandardAudioCapability::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 assumes the pdu is an integer number of frames per packet.
Reimplemented from H323AudioCapability.
BOOL OpalDynaCodecStandardAudioCapability::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 assumes the pdu is an integer number of frames per packet.
Reimplemented from H323AudioCapability.
const OpalDLLCodecRec& OpalDynaCodecStandardAudioCapability::info [protected] |
unsigned OpalDynaCodecStandardAudioCapability::subType [protected] |