1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" />
7<title>AuxCallback</title>
8  </head>
9  <body>
10<h1><CODE><a href="../../../nn/Overview.html">nn</a>::<a href="../../../nn/snd/Overview.html">snd</a>::<a href="../../../nn/snd/CTR/Overview.html">CTR</a>::AuxCallback</CODE> Type</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14typedef void(* nn::snd::CTR::AuxCallback)(AuxBusData *data, s32 sampleLength, uptr userData);</pre>
15    </div>
16<h2>Arguments</h2>
17    <div class="section">
18      <table class="arguments">
19        <thead>
20          <tr>
21            <td width="15" />
22<th>Name</th>
23<td>Description</td>
24          </tr>
25        </thead>
26        <tr>
27<td>in</td>
28<th>data</th>
29<td>Address of the data structure.</td>
30        </tr>
31        <tr>
32<td>in</td>
33<th>sampleLength</th>
34<td>The sample length.</td>
35        </tr>
36        <tr>
37<td>in</td>
38<th>userData</th>
39<td>User-defined data.</td>
40        </tr> </table>
41    </div>
42<h2>Description</h2>
43    <div class="section">
44<p>Typedef for the <CODE>Aux</CODE> callback function pointer.</p><p>
45You can register the <CODE>Aux</CODE> callback function with the <a href="../../../nn/snd/CTR/RegisterAuxCallback.html"><CODE>nn::snd::CTR::RegisterAuxCallback</CODE></a> function. Once registered, it is called every sound frame.
46      </p><p>
47Using the <CODE>Aux</CODE> callback function, you can process sound effects and so on. This processing is handled by the CPU. It is not processed by the DSP.
48      </p></div>
49<h2>Revision History</h2>
50    <div class="section">
51      <dl class="history">
52        <dt>2010/09/02</dt>
53<dd>Added a note about processing the callback function.
54        </dd>
55        <dt>2010/06/14</dt>
56<dd>Initial version.<br />
57        </dd>
58      </dl>
59    </div>
60  <hr><p>CONFIDENTIAL</p></body>
61</html>
62