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<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/ax.h> 19 20typedef void(*AXUserCallback)(void); 21 22AXUserCallback AXRegisterCallback(AXUserCallback callback); 23</pre></dd></dl> 24 25<h2>Arguments</h2> 26<TABLE class="arguments" border="1" > 27 <tr> 28<th>callback</th> 29<td>Callback to be registered.</td> 30 </tr> 31</table> 32 33<h2>Return Values</h2> 34<p>Pointer to the previous callback function.</p> 35 36<h2>Description</h2> 37<p>The <code>AXRegisterCallback</code> function 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> 38 39<h2>See Also</h2> 40<p>None.</p> 41 42<H2>Revision History</H2> 43<P> 442006/08/03 Revised the audio frame length.<br>2006/03/01 Initial version.<BR> 45</P> 46 47<hr><p>CONFIDENTIAL</p></body> 48</html> 49