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>AX System Initialization</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">AX System Initialization</h1>
15
16<h2>Overview</h2>
17
18<ul>
19<li>Call <code>AXInit()</code> to initialize AX.
20<li>Call <code>AXSetMode()</code> to run AX in stereo, surround, or Dolby Pro Logic&reg; II mode. Default mode is stereo.
21<li>Call <code>AXSetCompressor()</code> to switch the output compressor on or off. Default is on.
22<li>Call <code>AXRegisterCallback()</code> to register application designed service routine for each audio frame.
23<li>Call <code>AXQuit()</code> to shutdown AX.
24</ul>
25
26<h2>Example</h2>
27<BLOCKQUOTE>
28<pre><code>#include &lt;revolution.h&gt;
29
30void audioFrameCallback(void)
31{
32    // run frame based audio apps here (mixer, sequencer, synth... etc.)
33}
34
35void main(void)
36{
37    ...       // other initializations
38
39    AXInit();
40    AXRegisterCallback(&amp;audioFrameCallback);
41
42    while(1)
43    {
44    ...   // game loop
45    }
46
47    AXQuit();
48
49    ...        // other shutdown
50}</CODE></pre>
51</BLOCKQUOTE>
52<h2>Revision History</h2>
53
54<P>03/01/2006 Initial version.</P>
55</body>
56</html>
57