#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... | |
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 AudioRegisterXXX class will typically exist as a static member of an AudioCodecXXX 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.
|
|
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.
|
|
|
|
|