Wii audio library (AX) provides an environment for manipulating the audio subsystem.
To use the AX library, follow the procedure below.
AXInit function to initialize AX.
AXSetMode function to run AX in stereo, surround, or Dolby Pro Logic® II mode. Default mode is stereo.
AXSetCompressor function to switch the output compressor on or off. Default is on.
AXRegisterCallback function to register the application that sets the service routine for each audio frame.
AXQuit function to shut down AX.
The following is a simplified sample code for using the AX library.
#include <revolution.h> void audioFrameCallback(void) { // run frame based audio apps here (mixer, sequencer, synth... etc.) } void main(void) { ... // other initializations AXInit(); AXRegisterCallback(&audioFrameCallback); while(1) { ... // game loop } AXQuit(); ... // other shutdown }
2007/10/02 Revised the entire document after changes to the structure of function reference.
2006/03/01 Initial version.
CONFIDENTIAL