DSP_EncodeG711

Syntax


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

Arguments

dst Buffer that will store converted A-law 8-bit or µ-law 8-bit data.
The specified buffer has the same restrictions as a 16-bit DMA transfer. See Note below for more details.
src Buffer that holds the 16-bit PCM data to be converted.
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

Encodes PCM samples with the G.711 compression standard. You can use either the DSP_WaitForG711 or DSP_TryWaitForG711 function to confirm that processing is complete.

Note

See Also

DSPAudioCodecMode
DSP_LoadG711
DSP_DecodeG711
DSP_WaitForG711
DSP_TryWaitForG711

Revision History

2008/02/21 Initial version.


CONFIDENTIAL