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>AXRegisterCallback</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">AXRegisterCallback</h1>
15
16
17<h2>C Specification</h2>
18<BLOCKQUOTE>
19<pre><code>#include &lt;revolution.h&gt;
20
21typedef void(*AXUserCallback)(void);
22AXUserCallback AXRegisterCallback(AXUserCallback callback);</code></pre>
23</BLOCKQUOTE>
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>callback </code></strong></em></td>
29<td width="520">Callback to be registered.</td>
30  </tr>
31</table>
32
33<h2>Return Values</h2>
34
35<p>Pointer to the previous callback function.</p>
36
37<h2>Description</h2>
38
39<p><code>AXRegisterCallback()</code> registers a user-application callback that is invoked for each audio frame. An audio frame is three milliseconds in length. This function will replace the previously registered callback, if any. <strong>The user callback is invoked with interrupts disabled.</strong> Your application is responsible for enabling and restoring interrupts for non-critical sections, to ensure that other interrupt-driven services are handled promptly.</strong></p>
40<h2>See Also</h2>
41
42<H2>Revision History</H2>
43
44<P>2006/03/01 Initial version.</P>
45<P>2006/08/03 Revised the audio frame length.</P>
46
47<hr>
48<P>CONFIDENTIAL</p>
49</BODY>
50</HTML>
51