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>AXRmtGetSamples</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">AXRmtGetSamples</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/ax.h&gt;
19
20s32 AXRmtGetSamples(s32 chan, s16* buffer, s32 samples);
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<TABLE class="arguments" border="1" >
25  <tr>
26<th>chan</th>
27<td>Represents the controller number.</td>
28  </tr>
29  <tr>
30<th>buffer</th>
31<td>Pointer to the location that encoding data is to be retrieved.</td>
32  </tr>
33  <tr>
34<th>samples</th>
35<td>Represents the number of audio data requests (in units of samples).</td>
36  </tr>
37</table>
38
39<h2>Return Values</h2>
40<p>Returns the actual number of sets of audio data obtained.</p>
41
42<H2>Description</H2>
43<p>The <code>AXRmtGetSamples</code> function copies the amount of audio data given by <SPAN class="argument">samples</SPAN> for the controller on the channel given by <SPAN class="argument">chan</SPAN> from the internal buffer of the AX library into <SPAN class="argument">buffer</SPAN>. If the data in the internal buffer is less than the amount given by <SPAN class="argument">samples</SPAN>, just those samples that can be used will be copied to <SPAN class="argument">buffer</SPAN> and returns the number that were actually copied.</p>
44
45<H2>See Also</H2>
46<p>None.</p>
47
48<H2>Revision History</H2>
49<p>
502006/07/31 Initial version.<BR>
51</p>
52
53<hr><p>CONFIDENTIAL</p></body>
54</html>