Base class for all audio codecs. More...
#include <audio.h>
The abstract audio codec base class is used to define common inheretance for all audio codec handlers. This allows reference to an effective codec for the current payload format through a pointer as used in the RTPAudio classes.
Encode an audio stream in the current format. This normally is used to compress u-law 8bit 8khz audio in derived classes as all higher sampled audio is generally not codec processed. The default codec simply copies the data stream.
source | data to read from. |
len | in bytes of original data stream. |
target | to write codec converted data. |
Decode an audio stream in the current payload format. This normally is used to decompress into u-law 8 bit 8khz audio in derived classes as all higher sampled audio is generally not compressed.
source | of encoded audio data. |
len | of encoded audio data. |
target | for decoded audio data. |
| Kdoc |