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=utf-8">
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 2</TITLE>
9</HEAD>
10<BODY>
11<H1 align="left">axstream2</H1>
12
13<H2>Description</H2>
14<p>This program demonstrates software audio streaming of looped ADPCM data. The audio data is loaded from the disk into the streaming buffer and loop start buffer in external main memory (MEM2), and played from the DSP using an AX voice.</p>
15
16<p>The data in the streaming buffer and the loop start buffer is played by AX voice in Loop mode (<code>addr.loopFlag=AXPBADDR_LOOP_ON</code>). The program recognizes streaming playback and immediately loads new audio data into the region of the streaming buffer that has been played. (The data in the loop start buffer is loaded there when playback starts and subsequently resides in main memory.)</p>
17
18<p>The audio data that is played is looped ADPCM (DSP file).</p>
19
20<p>Because the sampling rate for the audio data is 32 kHz, this program does not use AX <CODE>SRC</CODE>. You must set <CODE>SRC</CODE> appropriately when using data that is not 32 kHz.</p>
21
22<H2>Coverage</H2>
23<UL type="DISC">
24  <LI>AX initialization and setup
25  <LI>AX voice allocation and runtime manipulation
26  <LI>MIX initialization and setup
27  <LI>MIX runtime manipulation
28</UL>
29
30<H2>How to Use</H2>
31<TABLE border="0" width="615">
32  <TBODY>
33    <TR>
34      <TD width="149">A Button</TD>
35      <TD width="458">Starts streaming playback of looped ADPCM data.</TD>
36    </TR>
37    <TR>
38      <TD width="149">B Button</TD>
39      <TD width="458">Stops streaming playback.</TD>
40    </TR>
41  </TBODY>
42</TABLE>
43
44<P>This program does not display any video. Information is written to the serial output when the program executes.</P>
45
46<H2>Required Data Files</H2>
47<UL type="DISC">
48  <LI><CODE>//axdemo/stream/left_wl.dsp </CODE>
49  <LI><CODE>//axdemo/stream/right_wl.dsp </CODE>
50</UL>
51
52<H2>Revision History</H2>
53<P>
542009/05/13 Initial version.
55</P>
56
57<hr><p>CONFIDENTIAL</p></body>
58</HTML>