#include <codecs.h>
Inheritance diagram for H323AudioCodec:
An application may create a descendent off this class and override functions as required for descibing a specific codec.
|
|
|
Create a new audio codec. This opens the standard PCM audio output device, for input and output and allows descendent codec classes to do audio I/O after decoding/encoding.
|
|
|
|
Close down the codec. This will close the codec breaking any block on the Read() or Write() functions. The default behaviour will close the rawDataChannel if it is not NULL and thene delete it if delteChannel is TRUE. Implements H323Codec. |
|
Check frame for a talk burst. This does the deadband calculations on the average signal levels returned by the GetAverageSignalLevel() function and based on the levelThreshold, signalDeadbandFrames and silenceDeadbandFrames member variables. Reimplemented in H323_LIDCodec. |
|
Get the average signal level in the audio stream. This is called from within DetectSilence() to calculate the average signal level since the last call to DetectSilence(). The default behaviour returns UINT_MAX which disables the silence detection algorithm. Reimplemented in H323FramedAudioCodec, H323_LIDCodec, and G7231_File_Codec. |
|
Get the frame rate in RTP timestamp units. Reimplemented from H323Codec. |
|
Get silence detection mode The inTalkBurst value is TRUE if packet transmission is enabled and FALSE if it is being suppressed due to silence. The currentThreshold value is the value from 0 to 32767 which is used as the threshold value for 16 bit PCM data. |
|
Open the codec. This will open the codec for encoding or decoding. This is primarily used to delay allocation of resources until the last minute. The default behaviour calls the H323EndPoint::OpenAudioChannel() function and assigns the result of that function to the raw data channel in the H323Codec class.
Reimplemented from H323Codec. |
|
Enable/Disable silence detection. The deadband periods are in audio samples of 8kHz.
|
|
|
|
|
|
|
|
|
|
Reimplemented in OpalDynaAudioCodec. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|