Sounds 2 Library Multi-Voice MADPCM Demo

Location

$CAFE_ROOT/system/src/demo/ax

Description

Demonstrates how to stream ADPCM audio data from the file system. Specifically, this demo illustrates how to:

The program plays two ADPCM files from memory after loading.

Console Output

After the program is invoked, it will display the following output:

Disable looping on all songs...
Renable looping on all songs and set states to run...
Set mvoice 0 loop offset to 52000...
Reset current mvoice offsets to 0...
Acquire 89 voices...
::voiceCallback p=0x105B74A8  index=0  reason=0
 Found voice at at mvoice[0].voices[0]
   Stopping/freeing entire mvoice[0]
Stop/free last voice acquired...
Re-start song...

Start the song again, which forces the current one to stop...
::voiceCallback p=0x105B74A8  index=0  reason=0
 Found voice at at mvoice[0].voices[0]
   Stopping/freeing entire mvoice[0]
Stage 1 -- Ramp down song.
Stage 2 -- Compute and enable LPF 100Hz
Stage 3 -- Reset LPF 10Hz
Stage 4 -- Disable LPF.  Enable Biquad 10KHz
Stage 5 -- Disable biquad.
Stage 6 -- Ramp up song.
Reset mvoices start to 0 and end offset to 52000...
====Is Voice 0 Running = 1
====Is Voice 1 Running = 1

Set state of both voices to STOP...
0 AXPBOFFSET[0] fmt  0  loopFlag   1  loopOffset    2  endOffset    cb20  currentOffset    2bcc  samples 0x10B7F558
0 AXPBOFFSET[1] fmt  0  loopFlag   1  loopOffset    2  endOffset    cb20  currentOffset    2bcc  samples 0x10B8CBE0
0 AXPBOFFSET[2] fmt  0  loopFlag   1  loopOffset    2  endOffset    cb20  currentOffset    2bcc  samples 0x10B9A268
0 AXPBOFFSET[3] fmt  0  loopFlag   1  loopOffset    2  endOffset    cb20  currentOffset    2bcc  samples 0x10BA78F0
0 AXPBOFFSET[4] fmt  0  loopFlag   1  loopOffset    2  endOffset    cb20  currentOffset    2bcc  samples 0x10BB4F78
0 AXPBOFFSET[5] fmt  0  loopFlag   1  loopOffset    2  endOffset    cb20  currentOffset    2bcc  samples 0x10BC2600
1 AXPBOFFSET[0] fmt  0  loopFlag   1  loopOffset    2  endOffset    cb20  currentOffset    2bcc  samples 0x10955398
1 AXPBOFFSET[1] fmt  0  loopFlag   1  loopOffset    2  endOffset    cb20  currentOffset    2bcc  samples 0x109F1868
====Is Voice 0 Running = 0
====Is Voice 1 Running = 0+OSDrivers_Done(p15,c1)

Files

$CAFE_ROOT/system/src/demo/ax/madpcmfeatures.c Demo source code.
$CAFE_ROOT/data/disc/content/axdemo/harmony_scale.mdsp Six channel multi-ADPCM audio file.
$CAFE_ROOT/data/disc/content/axdemo/shipwrecked_stereo.mdsp.mdsp Two channel multi-ADPCM audio file.

See Also

AX Overview
Multi Voice

Revision History

2014/02/27 Initial version


CONFIDENTIAL