This class defines a codec class that will use the standard platform PCM output device.
![]() | H323AudioCodec ( const char * mediaFormat, Direction direction ) Create a new audio codec. |
![]() | Open ( H323Connection & connection ) Open the codec. |
![]() | Close () Close down the codec. |
![]() | GetFrameRate () const Get the frame rate in RTP timestamp units |
![]() | SetSilenceDetectionMode ( SilenceDetectionMode mode, unsigned threshold = 0, unsigned signalDeadband = 80, unsigned silenceDeadband = 3200, unsigned adaptivePeriod = 4800 ) Enable/Disable silence detection. |
![]() | GetSilenceDetectionMode ( BOOL * isInTalkBurst = NULL, unsigned * currentThreshold = NULL ) const Get silence detection mode |
![]() | DetectSilence () Check frame for a talk burst. |
![]() | GetAverageSignalLevel () Get the average signal level in the audio stream. |
This class defines a codec class that will use the standard platform PCM output device.An application may create a descendent off this class and override functions as required for descibing a specific codec.
The default behaviour calls the H323EndPoint::OpenAudioChannel()
function and assigns the result of that function to the raw data
channel in the H323Codec class.
The default behaviour will close the rawDataChannel if it is not NULL
and thene delete it if delteChannel is TRUE.
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.
The default behaviour returns UINT_MAX which disables the silence
detection algorithm.
virtual BOOL Open( H323Connection & connection )
virtual void Close()
virtual unsigned GetFrameRate() const
void SetSilenceDetectionMode( SilenceDetectionMode mode, unsigned threshold = 0, unsigned signalDeadband = 80, unsigned silenceDeadband = 3200, unsigned adaptivePeriod = 4800 )
threshold - Threshold value if FixedSilenceDetection
signalDeadband - 10 milliseconds of signal needed
silenceDeadband - 400 milliseconds of silence needed
adaptivePeriod - 600 millisecond window for adaptive thresholdSilenceDetectionMode GetSilenceDetectionMode( BOOL * isInTalkBurst = NULL, unsigned * currentThreshold = NULL ) const
virtual BOOL DetectSilence()
virtual unsigned GetAverageSignalLevel()
Alphabetic index HTML hierarchy of classes or Java