
void DSP_EncodeG711(void *dst, const void *src, u32 len, DSPAudioCodecMode mode);
| 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. |
None.
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.
DSP_LoadG711 function to load the G.711 component before using this function.DSPAudioCodecMode
DSP_LoadG711
DSP_DecodeG711
DSP_WaitForG711
DSP_TryWaitForG711
2008/02/21 Initial version.
CONFIDENTIAL