axstream

Description

This program demonstrates "software audio streaming." Audio data is streamed from disk into a buffer in external main memory (MEM2) and played through the DSP using an AX voice.

AX voice plays the data in the buffer in looping mode (addr.loopFlag=AXPBADDR_LOOP_ON). The program implements streaming by continuously loading new audio data into buffer regions for which playback has completed.

The audio data to play back is 16-bit PCM (.pcm16), 8-bit PCM (.pcm8), and ADPCM (.dsp). The method for specifying a buffer address is different for each data format. Decoding parameters must also be specified for ADPCM data. Be aware of data format differences.

This program does not use SRC for AX because the sampling rate of all the audio data is 32 kHz. You must set SRC appropriately when using data that is not 32 kHz.

The format of 16-bit PCM (pcm16) and 8-bit PCM (pcm8) are as follows.

Both files have only audio data and contain no other information (for example, header).

Coverage

Using the Demo

A Button   Performs streaming playback of 16-bit PCM data.
B Button   Performs streaming playback of 8-bit PCM data.
X Button   Performs streaming playback of ADPCM data.
Y Button   Stops stream (to stop before starting another).
START/PAUSE Exits program.

This program does not display any video. Instructions are printed to the serial output during runtime.

Required Data Files

Revision History

2007/09/03 Deleted a description related to ARAM. Added file descriptions.
2006/03/01 Initial version.


CONFIDENTIAL