This class defines a codec class that will use the standard platform PCM output device, and the encoding/decoding is streamed.
This class defines a codec class that will use the standard platform PCM output device, and the encoding/decoding is streamed. That is each input 16 bit PCM sample is encoded to 8 bits or less of encoded data and no blocking of PCM data is required, eg G.711, G.721 etc.An application may create a descendent off this class and override functions as required for descibing a specific codec.
virtual BOOL EncodeFrame( BYTE * buffer, unsigned & length )
length - Actual length of encoded data buffervirtual BOOL DecodeFrame( const BYTE * buffer, unsigned length, unsigned & written )
length - Length of encoded data buffer
written - Number of bytes used from data buffervirtual int Encode(short sample) const
virtual short Decode(int sample) const
Alphabetic index HTML hierarchy of classes or Java