1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
6<title>Obtaining data for the AX controller speaker</title>
7<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
8<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows">
9<META http-equiv="Content-Style-Type" content="text/css">
10</head>
11
12<body>
13
14<h1 align="left">Obtaining Data for the Controller Speaker</h1>
15
16<h2>Overview</h2>
17
18<ul>
19  <li>Gets the audio data for the controller speaker by using the <code>AXRmt</code> function.
20</ul>
21
22<h2>Examples</h2>
23<BLOCKQUOTE>
24<pre><code>#include &lt;revolution.h&gt;
25
26// Are there 40 samples (or more) of audio data for the controller speaker that has been synthesized?
27if (40 == AXRmtGetSamplesLeft())
28{
29
30    // Since there is enough data volume, the process continues.
31
32    // Process for each of the four controllers.
33    for (chan = 0; chan &lt; 4; chan++)
34    {
35
36        // 40 samples of the audio data for the number <EM>chan</EM> controller is copied to the AudioBuffer[].
37        AXRmtGetSamples(chan, AudioBuffer[chan], 40);
38
39        ... // Process the AudioBuffer[] data.
40    }
41
42    // Advance the pointer because the audio data for the controller speaker was obtained from the AX internal buffer.
43    AXRmtAdvancePtr(40);
44}</CODE></pre>
45</BLOCKQUOTE>
46
47<h2>Revision History</h2>
48
49<P>07/31/2006 Initial version.</P>
50
51<hr>
52<P>CONFIDENTIAL</p>
53</BODY>
54</HTML>
55