interface MAGES::Recorder::ICodec¶
Overview¶
Represents a codec. More…
interface ICodec { // properties string Name; string[] Extensions; int Priority; // methods IEncoder CreateEncoder( BinaryWriter writer, int sampleRate, int channels, PCM.Format format, Dictionaryoptions = null ); IDecoder CreateDecoder( BinaryReader reader, Dictionary options = null ); }; // direct descendants class WaveCodec;
Detailed Documentation¶
Represents a codec.
Properties¶
string Name
Gets the name of the library implementing a codec.
string[] Extensions
Gets the file extensions supported by the codec.
int Priority
Gets the priority of the codec.
Methods¶
IEncoder CreateEncoder( BinaryWriter writer, int sampleRate, int channels, PCM.Format format, Dictionaryoptions = null )
Creates an encoder for the codec.
Parameters:
writer |
The writer to write the encoded data to. |
sampleRate |
Sample rate of the input data. |
channels |
Number of channels used. |
format |
Format of the input data. |
options |
Options for the encoder. |
Returns:
An encoder interface for this audio codec.
IDecoder CreateDecoder( BinaryReader reader, Dictionaryoptions = null )
Creates a decoder for the codec.
Parameters:
reader |
The reader to read the encoded data from. |
options |
Options for the decoder. |
Returns:
A decoder interface for this audio codec.