DSP_DecodeG711

Syntax


void DSP_DecodeG711(void *dst, const void *src, u32 len, DSPAudioCodecMode mode);

Arguments

dst Buffer that stores converted 16-bit PCM data.
The specified buffer has the same restrictions as a 16-bit DMA transfer. See Note below for more details.
src Buffer that holds 8-bit A-law or 8-bit µ-law source data to convert.
The specified buffer has the same restrictions as a 16-bit DMA transfer. See Note below for more details.
len Number of samples to convert.
mode Encoding to be converted.
Select either DSP_AUDIO_CODEC_MODE_G711_ALAW or DSP_AUDIO_CODEC_MODE_G711_ULAW.

Return Values

None.

Description

Decodes G.711-encoded PCM samples. You can use either the DSP_WaitForG711 or DSP_TryWaitForG711 function to confirm that processing is complete.

Note

See Also

DSPAudioCodecMode
DSP_LoadG711
DSP_EncodeG711
DSP_WaitForG711
DSP_TryWaitForG711

Revision History

2008/02/21 Initial version.


CONFIDENTIAL