axstream Demo

Location

$CAFE_ROOT/system/src/demo/ax

Description

Illustrates how to stream ADPCM, PCM8, or PCM16 audio data from the file system. Specifically, this program illustrates how to perform the following.

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

Console Output

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

    Preparing the ADPCM Stream for playback on DSP
    now at stream byte offset 0000a000
    now at stream byte offset 0000a000
    now at stream byte offset 00010000
    now at stream byte offset 00014000
    now at stream byte offset 00018000
    now at stream byte offset 0001c000
    now at stream byte offset 00022000
    now at stream byte offset 00026000
    now at stream byte offset 0002a000
    now at stream byte offset 0002e000
    now at stream byte offset 00034000
    now at stream byte offset 00038000
    now at stream byte offset 00039ba0
    Preparing the PCM8 Stream for playback on DSP
    now at stream byte offset 0000a000
    now at stream byte offset 00010000
    now at stream byte offset 00018000
    now at stream byte offset 00020000
    now at stream byte offset 00026000
    now at stream byte offset 0002e000
    now at stream byte offset 00036000
    now at stream byte offset 0003e000
    now at stream byte offset 00046000
    now at stream byte offset 0004e000
    now at stream byte offset 00056000
    now at stream byte offset 0005e000
    now at stream byte offset 00064fc0
    now at stream byte offset 00064fc0
    Preparing the PCM16 Stream for playback on DSP
    now at stream byte offset 0000a000
    now at stream byte offset 00016000
    now at stream byte offset 00026000
    now at stream byte offset 00036000
    now at stream byte offset 00046000
    now at stream byte offset 00054000
    now at stream byte offset 00064000
    now at stream byte offset 00074000
    now at stream byte offset 00084000
    now at stream byte offset 00094000
    now at stream byte offset 000a4000
    now at stream byte offset 000b2000
    now at stream byte offset 000c2000
    now at stream byte offset 000c9f80
    Preparing the ADPCM Stream for playback on PPC
    now at stream byte offset 0000e000
    now at stream byte offset 00012000
    now at stream byte offset 00016000
    now at stream byte offset 0001a000
    now at stream byte offset 0001e000
    now at stream byte offset 00024000
    now at stream byte offset 00028000
    now at stream byte offset 0002c000
    now at stream byte offset 00030000
    now at stream byte offset 00036000
    now at stream byte offset 00039ba0
    Preparing the PCM8 Stream for playback on PPC
    now at stream byte offset 0000a000
    now at stream byte offset 0000c000
    now at stream byte offset 00014000
    now at stream byte offset 0001a000
    now at stream byte offset 00022000
    now at stream byte offset 0002a000
    now at stream byte offset 00032000
    now at stream byte offset 0003a000
    now at stream byte offset 00042000
    now at stream byte offset 0004a000
    now at stream byte offset 00052000
    now at stream byte offset 0005a000
    now at stream byte offset 00062000
    now at stream byte offset 00064fc0
    Preparing the PCM16 Stream for playback on PPC
    now at stream byte offset 0000a000
    now at stream byte offset 0000e000
    now at stream byte offset 0001e000
    now at stream byte offset 0002e000
    now at stream byte offset 0003c000
    now at stream byte offset 0004c000
    now at stream byte offset 0005c000
    now at stream byte offset 0006c000
    now at stream byte offset 0007c000
    now at stream byte offset 0008c000
    now at stream byte offset 0009a000
    now at stream byte offset 000aa000
    now at stream byte offset 000ba000
    now at stream byte offset 000c9f80
    Audio Shut down completed
    End of axstream
    exited...
    [+-*APPLICATION EXITED*-+]
    Application Exited

Files

$CAFE_ROOT/system/src/demo/ax/axstream.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

Revision History

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


CONFIDENTIAL