This class is a LID codec that only converts data for playback on some other audio device
![]() | H323_LIDCodec ( const char * mediaFormat, Direction direction, unsigned numFrames, PINDEX codecTableIndex ) Create a new LID based codec. |
![]() | Read ( BYTE * buffer, unsigned & length, RTP_DataFrame & rtpFrame ) Encode the data from the appropriate device. |
![]() | Write ( const BYTE * buffer, unsigned length, const RTP_DataFrame & frame, unsigned & written ) Decode the data and output it to appropriate device. |
![]() | DetectSilence () Check frame for a talk burst. |
![]() | GetAverageSignalLevel () Calculate the energy in the audio stream. |
This class is a LID codec that only converts data for playback on some other audio device
The length parameter is filled with the actual length of the encoded
data, often this will be the same as the size parameter. This function is called every GetFrameRate() timestamp units, so MUST
take less than (or equal to) that amount of time to complete! Note that a returned length of zero indicates that time has passed but
there is no data encoded. This is typically used for silence detection
in an audio codec.
It is expected this function anunciates the data. That is, for example
with audio data, the sound is output on a speaker. This function is called every GetFrameRate() timestamp units, so MUST
take less than that amount of time to complete!
virtual BOOL Read( BYTE * buffer, unsigned & length, RTP_DataFrame & rtpFrame )
length - Actual length of encoded data buffer
rtpFrame - RTP data framevirtual BOOL Write( const BYTE * buffer, unsigned length, const RTP_DataFrame & frame, unsigned & written )
length - Length of encoded data buffer
frame - Entire RTP frame
written - Number of bytes used from data buffervirtual BOOL DetectSilence()
virtual unsigned GetAverageSignalLevel()
Alphabetic index HTML hierarchy of classes or Java