man AudioCodec (Fonctions bibliothèques) - The codec class is a virtual used for transcoding audio samples between linear frames (or other known format) and an encoded 'sample' buffer. process codec interface.

NAME

AudioCodec - The codec class is a virtual used for transcoding audio samples between linear frames (or other known format) and an encoded 'sample' buffer. process codec interface.

SYNOPSIS



#include <audio.h>

Inherits Audio.

Public Methods

virtual unsigned encode (Linear buffer, void *dest, unsigned lsamples)=0

Encode a linear sample frame into the codec sample buffer. virtual unsigned decode (Linear buffer, void *source, unsigned lsamples)=0

Decode the sample frame into linear samples.

DETAILED DESCRIPTION

The codec class is a virtual used for transcoding audio samples between linear frames (or other known format) and an encoded 'sample' buffer. process codec interface.

This class is only abstract and describes the core interface for loadable codec modules. This class is normally merged with AudioSample. A derived AudioCodecXXX will typically include a AudioRegisterXXX static class to automatically initialize and register the codec with the codec registry.

Author: David Sugar <dyfet@ostel.com>

MEMBER FUNCTION DOCUMENTATION

virtual unsigned AudioCodec::decode (Linear buffer, void * source, unsigned lsamples) [pure virtual]

Decode the sample frame into linear samples.

Returns: number of bytes scanned.

Parameters:

buffer
sample buffer to save linear samples into.
source
for encoded data.
number
of samples to extract.

virtual unsigned AudioCodec::encode (Linear buffer, void * dest, unsigned lsamples) [pure virtual]

Encode a linear sample frame into the codec sample buffer.

Parameters:

number
of bytes written.
buffer
linear sample buffer to use.
dest
buffer to store encoded results.
lsamples
The number of linear samples.

AUTHOR

Generated automatically by Doxygen for ccAudio from the source code.