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>C Specification</h2>
17
18<BLOCKQUOTE>
19<pre><code>#include &lt;revolution.h&gt;
20
21s32 AXRmtGetSamples(s32 chan, s16* buffer, s32 samples);</code></pre>
22</BLOCKQUOTE>
23
24<h2>Arguments</h2>
25
26<table border="1" cellpadding="3" cellspacing="0.1">
27  <tr>
28<td width="120" bgcolor="#ffffe8"><em><strong><code>chan</code></strong></em></td>
29<td width="520">Represents the controller number.</td>
30  </tr>
31  <tr>
32<td width="120" bgcolor="#ffffe8"><em><strong><code>buffer</code></strong></em></td>
33<td width="520">Pointer to the location that encoding data is to be retrieved.</td>
34  </tr>
35  <tr>
36<td width="120" bgcolor="#ffffe8"><em><strong><code>samples</code></strong></em></td>
37<td width="520">Represents the number of audio data requests (in units of samples).</td>
38  </tr>
39</table>
40
41<h2>Return Values</h2>
42
43<p>Returns the actual number of sets of audio data obtained.</p>
44
45<H2>Description</H2>
46
47<p>The <code>AXRmtGetSamples</code> function copies the amount of audio data given by <code>samples</code> for the controller on the channel given by <code>chan</code> from the internal buffer of the AX library into <code>buffer</code>. If the data in the internal buffer is less than the amount given by <code>samples</code>, just those samples that can be used will be copied to <code>buffer</code> and returns the number that were actually copied.</p>
48
49<H2>See Also</H2>
50
51<H2>Revision History</H2>
52
53<p>2006/07/31 Initial version.</p>
54
55<hr>
56<P>CONFIDENTIAL</p>
57</BODY>
58</HTML>