#include <audio.h>
Public Methods | |
| virtual audioencoding_t | getEncoding (void)=0 |
| Get the encoding format of this codec registry. More... | |
| virtual unsigned | getRate (void) |
| Get the default sample rate for this codec type. More... | |
| virtual char * | getName (void)=0 |
| Get a logical name for this codec. More... | |
| virtual AudioCodec * | getCodec (unsigned frames)=0 |
| Creates a new codec from the registry class. More... | |
| virtual AudioSample * | getTone (unsigned f1, unsigned f2, unsigned maxsize, unsigned maxtone=0)=0 |
| Create a new Tone object from the registry class. More... | |
| unsigned | getFrameSize (void) |
| Return minimum codec frame size in samples. More... | |
| unsigned | getFrameCount (void) |
| Get the default or preferred number of frames for optimal performance. More... | |
Protected Methods | |
| AudioRegisterCodec (unsigned min, unsigned def=1) | |
Protected Attributes | |
| unsigned | minframe |
| unsigned | framecnt |
Friends | |
| AudioRegisterCodec * | findCodec (audioencoding_t encoding, unsigned rate=0) |
| Locate a codec registry object. More... | |
| AudioRegisterCodec * | findCodec (const char *name) |
| Locate a codec registry object by name. More... | |
| AudioCodec * | getCodec (audioencoding_t encoding, unsigned rate=0, unsigned frames=0) |
| Create a new codec object from the registry to use for transcoding. More... | |
| AudioCodec * | getCodec (const char *name, unsigned frame=0) |
| Create a new codec object from a named registry to use for transcoding. More... | |
A derived xxxRegisterCodec class will typically exist as a static member of an xxxCodec class to automatically register the codec at system load time.
|
||||||||||||
|
|
|
|
Creates a new codec from the registry class. This creates an object of "frame" size, as a multiple of the min. frame size. This is usually just a new xxxCodec(frames * minframe).
|
|
|
Get the encoding format of this codec registry.
|
|
|
Get the default or preferred number of frames for optimal performance.
|
|
|
Return minimum codec frame size in samples.
|
|
|
Get a logical name for this codec.
|
|
|
Get the default sample rate for this codec type.
|
|
||||||||||||||||||||
|
Create a new Tone object from the registry class. This creates a tone buffer (AudioTone-like sample) encoded in the format of the given codec.
|
|
|
Locate a codec registry object by name.
|
|
||||||||||||
|
Locate a codec registry object.
|
|
||||||||||||
|
Create a new codec object from a named registry to use for transcoding.
|
|
||||||||||||||||
|
Create a new codec object from the registry to use for transcoding.
|
|
|
|
|
|
|
1.2.10 written by Dimitri van Heesch,
© 1997-2001