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