class H323_LIDCodec |
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. |
![]() | IsRawDataChannelNative () const Return flag indicating raw channel is native. |
![]() | 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!
The default behaviour returns TRUE.
Alphabetic index HTML hierarchy of classes or Java