Aenc
Provides a simple interface to AUDENC (XDM 0.9) based algorithms. Typical example below (AAC, no error checking):.
More...
Detailed Description
Provides a simple interface to AUDENC (XDM 0.9) based algorithms. Typical example below (AAC, no error checking):.
Typedef Documentation
Handle through which to reference an Audio Encode algorithm.
Function Documentation
Aenc_Handle Aenc_create |
( |
Engine_Handle |
hEngine, |
|
|
Char * |
codecName, |
|
|
AUDENC_Params * |
params, |
|
|
AUDENC_DynamicParams * |
dynParams | |
|
) |
| | |
Creates an Audio Encode (XDM 0.9) algorithm instance.
- Parameters:
-
[in] | hEngine | An opened engine containing the algorithm to create. |
[in] | codecName | The name of the algorithm to open. Corresponds to the string name given in the .cfg file. |
[in] | params | XDM parameters to use while creating the codec. |
[in] | dynParams | XDM dynamic parameters to use while creating the codec. |
- Return values:
-
| Handle | for use in subsequent operations (see Aenc_Handle). |
| NULL | for failure. |
Encodes an audio buffer.
- Parameters:
-
[in] | hAe | The Aenc_Handle to use for encoding. |
[in] | hInBuf | The Buffer_Handle for the buffer containing the raw data. |
[in] | hOutBuf | The Buffer_Handle for the buffer to fill with decoded data. |
- Return values:
-
| Dmai_EOK | for success. |
| Negative value | for failure, see Dmai.h. |
Deletes an Audio Encode algorithm instance.
- Parameters:
-
- Return values:
-
| Dmai_EOK | for success. |
| Negative value | for failure, see Dmai.h. |
Get the AUDENC handle from the Aenc module instance.
- Parameters:
-
[in] | hAe | The Aenc_Handle for which to get the AUDENC handle. |
- Return values:
-
| Handle | to the audio encode algorithm, see the XDM documentation for AUDENC. |
Get the input buffer size required by the codec.
- Parameters:
-
[in] | hAe | The Aenc_Handle for which to get the buffer size. |
- Return values:
-
| Size | in bytes of the input buffer required. |
Get the output buffer size required by the codec.
- Parameters:
-
[in] | hAe | The Aenc_Handle for which to get the buffer size. |
- Return values:
-
| Size | in bytes of the output buffer required. |
Variable Documentation
Default XDM params for an Audio Encode algorithm.
size = sizeof(AUDENC_Params),
encodingPreset = XDM_DEFAULT,
maxSampleRate = 48000,
maxBitrate = 288000,
maxNoOfCh = IAUDIO_STEREO,
dataEndianness = XDM_LE_16
Default XDM dynamic params for an Audio Encode algorithm.
size = sizeof(AUDENC_DynamicParams),
inputFormat = IAUDIO_INTERLEAVED,
bitRate = 288000,
sampleRate = 48000,
numChannels = IAUDIO_STEREO,
numLFEChannels = 0,
inputBitsPerSample = 16