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>MIXUpdateSettings</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">MIXUpdateSettings</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution.h> 19#include <revolution/mix.h> 20 21void MIXUpdateSettings(void); 22</pre></dd></dl> 23 24<h2>Arguments</h2> 25<p>None.</p> 26 27<h2>Return Values</h2> 28<p>None.</p> 29 30<h2>Description</h2> 31 32<p>The <CODE>MIXUpdateSettings</CODE> function generates new internal mixing values and updates AX with them. The <CODE>MIXUpdateSettings</CODE> function can run with interrupts enabled. This function must be invoked by the audio frame callback routine, which in turn must be registered by the <CODE>AXRegisterCallback</CODE> function. For example:</p> 33<BLOCKQUOTE><PRE><CODE>static void callbackForAudioFrame(void) 34{ 35 ... 36 // tell the mixer to update settings to AX 37 MIXUpdateSettings(); 38} 39 40void main(void) 41{ 42 ... 43 44 AXInit(); 45 MIXInit(); 46 AXRegisterCallback(&callbackAudioFrame); 47 48 ... 49 50 MIXQuit(); 51 AXQuit(); 52 ... 53}</CODE></PRE></BLOCKQUOTE> 54 55<h2>See Also</h2> 56<p class="reference"> 57<a href="../../ax/Initialization/AXRegisterCallback.html">AXRegisterCallback</a>, 58<a href="../../ax/Initialization/AXInit.html">AXInit</a>, 59<a href="MIXQuit.html">MIXQuit</a>, 60<a href="../../ax/Initialization/AXQuit.html">AXQuit</a> 61</p> 62 63<h2>Revision History</h2> 64<P> 652006/03/01 Initial version.<BR> 66</P> 67 68<hr><p>CONFIDENTIAL</p></body> 69</html> 70