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<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 7<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows"> 8<META http-equiv="Content-Style-Type" content="text/css"> 9<title>Audio Library (AX) API</title> 10</head> 11 12<body> 13 14<h1 align="left">Audio Library (AX) API</h1> 15 16<h2>Introduction</h2> 17<p>Wii audio library (AX) provides an environment for manipulating the audio subsystem.</p> 18 19<h2>AX System Initialization</h2> 20<p>To use the AX library, follow the procedure below.</p> 21<ul> 22<li>Call the <a href="AXInit.html"><code>AXInit</code></a> function to initialize AX. 23<li>Call the <a href="AXSetMode.html"><code>AXSetMode</code></a> function to run AX in stereo, surround, or Dolby Pro Logic® II mode. Default mode is stereo. 24<li>Call the <a href="AXSetCompressor.html"><code>AXSetCompressor</code></a> function to switch the output compressor on or off. Default is on. 25<li>Call the <a href="AXRegisterCallback.html"><code>AXRegisterCallback</code></a> function to register the application that sets the service routine for each audio frame. 26<li>Call the <a href="AXQuit.html"><code>AXQuit</code></a> function to shut down AX. 27</ul> 28 29<h2>Examples</h2> 30<p>The following is a simplified sample code for using the AX library.</p> 31<BLOCKQUOTE> 32<pre><code>#include <revolution.h> 33 34void audioFrameCallback(void) 35{ 36// run frame based audio apps here (mixer, sequencer, synth... etc.) 37} 38 39void main(void) 40{ 41 ... // other initializations 42 43 AXInit(); 44 AXRegisterCallback(&audioFrameCallback); 45 46 while(1) 47 { 48 ... // game loop 49 } 50 51 AXQuit(); 52 53 ... // other shutdown 54}</CODE></pre> 55</BLOCKQUOTE> 56 57<h2>Revision History</h2> 58<P> 592007/10/02 Revised the entire document after changes to the structure of function reference.<br>2006/03/01 Initial version.<br> 60</P> 61 62<hr><p>CONFIDENTIAL</p></body> 63</html> 64