1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8<TITLE>AX Stream</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">axstream</H1> 12 13<H2>Description</H2> 14<p>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.</p> 15 16<p>AX voice plays the data in the buffer in looping mode (<code>addr.loopFlag=AXPBADDR_LOOP_ON</code>). The program implements streaming by continuously loading new audio data into buffer regions for which playback has completed.</p> 17 18<p>The audio data to play back is 16-bit PCM (<code>.pcm16</code>), 8-bit PCM (<code>.pcm8</code>), and ADPCM (<code>.dsp</code>). 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.</p> 19 20<p>This program does not use <CODE>SRC</CODE> for AX because the sampling rate of all the audio data is 32 kHz. You must set <CODE>SRC</CODE> appropriately when using data that is not 32 kHz.</p> 21 22<p>The format of 16-bit PCM (<CODE>pcm16</CODE>) and 8-bit PCM (<CODE>pcm8</CODE>) are as follows.</p> 23<UL> 24<LI>16-bit PCM (<CODE>pcm16</CODE>): 16-bit PCM data, monaural, big-endian 25<LI>8-bit PCM (<CODE>pcm8</CODE>): 8-bit PCM data, monaural 26</UL> 27<p> Both files have only audio data and contain no other information (for example, header).</p> 28 29<H2>Coverage</H2> 30 31<UL type="DISC"> 32<LI>AX initialization, setup, shutdown 33<LI>AX voice acquisition, runtime manipulation 34<LI>MIX initialization, setup, shutdown 35<LI>MIX runtime manipulation 36</UL> 37 38<H2>Using the Demo</H2> 39 40<TABLE border="0" width="615"> 41 <TBODY> 42 <TR> 43<TD width="149">A Button </TD> 44<TD width="458">Performs streaming playback of 16-bit PCM data.</TD> 45 </TR> 46 <TR> 47<TD width="149">B Button </TD> 48<TD width="458">Performs streaming playback of 8-bit PCM data.</TD> 49 </TR> 50 <TR> 51<TD width="149">X Button </TD> 52<TD width="458">Performs streaming playback of ADPCM data.</TD> 53 </TR> 54 <TR> 55<TD width="149">Y Button </TD> 56<TD width="458">Stops stream (to stop before starting another).</TD> 57 </TR> 58 <TR> 59<TD width="149">START/PAUSE</TD> 60<TD width="458">Exits program.</TD> 61 </TR> 62 </TBODY> 63</TABLE> 64 65<P>This program does not display any video. Instructions are printed to the serial output during runtime.</P> 66 67<H2>Required Data Files</H2> 68<UL type="DISC"> 69<LI><FONT face="Courier New">//axdemo/stream/left.pcm16 </FONT> 70<LI><FONT face="Courier New">//axdemo/stream/right.pcm16 </FONT> 71<LI><FONT face="Courier New">//axdemo/stream/left.pcm8 </FONT> 72<LI><FONT face="Courier New">//axdemo/stream/right.pcm8 </FONT> 73<LI><FONT face="Courier New">//axdemo/stream/left.dsp </FONT> 74<LI><FONT face="Courier New">//axdemo/stream/right.dsp </FONT> 75</UL> 76 77<H2>Revision History</H2> 78<P> 792007/09/03 Deleted a description related to ARAM. Added file descriptions.<br>2006/03/01 Initial version. 80</P> 81 82<hr><p>CONFIDENTIAL</p></body> 83</HTML>