nn::snd::CTR::EncodeAdpcmData Function

Syntax

s32 EncodeAdpcmData(
     s16 * pInput,
     u8 * pOutput,
     s32 nSamples,
     s32 sampleRate,
     s32 loopStart,
     s32 loopEnd,
     DspsndAdpcmHeader * pInfo
);

Arguments

Name Description
in pInput Address of the input buffer.
out pOutput Address of the output buffer (must be 4-byte aligned).
in nSamples Number of input samples.
in sampleRate Sampling frequency.
in loopStart Position of the starting sample for loop playback. (Starts from 0.)
in loopEnd Position of the ending sample for loop playback. (Starts from 0.)
out pInfo Address of the header structure.

Return Values

None.

Description

Encodes 16-bit PCM data into DSP-ADPCM format.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL