axstream2 Demo

Location

$CAFE_ROOT/system/src/demo/ax

Description

Illustrates how to stream ADPCM, PCM8, or PCM16 audio directly from the file system. This program is more advanced than the axstream demonstration in that the streaming loop points and buffers are managed dynamically during playback.

Specifically, this demo illustrates how to perform the following.

The demo plays the ADPCM version first, followed by the PCM8 version and PCM16 version, and then exits.

Console Output

When the demo is run, the following output is displayed to the TV:

	    axstream2.c built 09:11:22 Aug 15 2013

       A - Looping:  On
       B - Playback: On
       X - Renderer: DSP
       Y - Format:   ADPCM

           Offset:   90112
           State:    STREAM_STARTED
    

Use the GamePad to control the demo as follows.

HOME Button Terminate the program.
A Button Enable and disable file looping.
B Button Start and stop playback.
X Button Toggle between DSP and PPC renderer options.
Y Button Select the audio format.
  • ADPCM
  • PCM8
  • PCM16

Files

$CAFE_ROOT/system/src/demo/ax/axstream2.c Demo source code.
$CAFE_ROOT/data/disc/content/axdemo/stream/left.dsp Left channel, ADPCM version.
$CAFE_ROOT/data/disc/content/axdemo/stream/left.pcm8 Left channel, PCM8 version.
$CAFE_ROOT/data/disc/content/axdemo/stream/left.pcm16 Left channel, PCM16 version.
$CAFE_ROOT/data/disc/content/axdemo/stream/right.dsp Right channel, ADPCM version.
$CAFE_ROOT/data/disc/content/axdemo/stream/right.pcm8 Right channel, PCM8 version.
$CAFE_ROOT/data/disc/content/axdemo/stream/right.pcm16 Right channel, PCM16 version.

See Also

AXAcquireVoice
AXSetVoiceState
AXSetVoiceEndOffsetEx
AXSetVoiceLoopOffsetEx
AXSetVoiceLoop
AXGetVoiceLoopCount

Revision History

2013/05/08 Automated cleanup pass.
2012/08/01 Cleanup Pass.
2012/01/26 Updated for SDK 2.02 Release


CONFIDENTIAL