snd - AdpcmEncDec Demo

Description

This is a sample of the DSP-ADPCM encoder and decoder.

This plays back a sine wave loop. See the documentation for the CTR-SDK Windows tool's WaveCodecCtr.dll module for details about loop playback of encoded data.

Required Environment

None.

How to Use

Input Operation
A Button. Quits the DSP-ADPCM encoder demo and starts the decoder demo.

Notes

None.

Execution Procedure

Running the demo automatically starts the DSP-ADPCM encoder demo, and the following log is displayed as the debugger output.

Demo Start
[demo] start encoding pcm data...
[demo] press button A to start adpcm decoder test
rom:/sine.wav (1ch, 32768Hz, 16-bit wav file)
[demo] finished encoding! nSamples(28800) LS(56) LLEN(28672) LE(28728)
[demo] now start playing adpcm data...
yn1(0) yn2(0) ps(9) LOOP yn1(-20417) yn2(-18716) ps(3)

Pressing the A Button again starts the DSP-ADPCM decoder demo, and the following log is displayed as the debugger output.

[demo] start decoding adpcm data...
[demo] finished decoding!
[demo] now start playing decoded pcm data...

There is no shutdown procedure. Stop execution in a timely manner.

Revision History

2011/12/13
Added explanation about loop playback and revised description of demos.
2011/02/02
Initial version.

CONFIDENTIAL