1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 5<TITLE>MIXRmtSetVolumes</TITLE> 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</HEAD> 10<BODY> 11<H1 align="left">MIXRmtSetVolumes</H1> 12 13<H2>Syntax</H2> 14<dl><dd><pre class="construction"> 15#include <revolution.h> 16#include <revolution/mix.h> 17 18#define MIX_MODE_AUX0_PREFADER 0x00000001 19#define MIX_MODE_AUX1_PREFADER 0x00000002 20#define MIX_MODE_AUX2_PREFADER 0x00000004 21#define MIX_MODE_AUX3_PREFADER 0x00000008 22 23void MIXRmtSetVolumes( 24 AXVPB *axvpb, // Pointer to voice 25 u32 mode, // aux mode of controller 0, 1, 2, 3 26 int fader0, // Initial fader attenuation/gain for Controller 0 27 int fader1, // Initial fader attenuation/gain for Controller 1 28 int fader2, // Initial fader attenuation/gain for Controller 2 29 int fader3, // Initial fader attenuation/gain for Controller 3 30 int aux0, // Initial aux attenuation/gain for Controller 0 31 int aux1, // Initial aux attenuation/gain for Controller 1 32 int aux2, // Initial aux attenuation/gain for Controller 2 33 int aux3, // Initial aux attenuation/gain for Controller 3 34 ); 35</pre></dd></dl> 36 37<H2>Arguments</H2> 38<TABLE class="arguments" border="1" > 39 <TBODY> 40 <TR> 41<TH>p</TH> 42<TD>Specifies a pointer to the <CODE>AXVPB</CODE> structure acquired from AX by the user.</td> 43 </TR> 44 <TR> 45<TH>mode</TH> 46<TD>Specifies the initial mode of the aux bus for Controllers 0, 1, 2, and 3. This value is the bits identified by the OR logic within the following:<br> 47 <TABLE class="arguments" border="1" > 48 <tr> 49<th>MIX_MODE_AUX0_PREFADER</th> 50<td>Sets the aux bus of Controller 0 to pre-fader mode. If unspecified, post fader mode results.</td> 51 </tr> 52 <tr> 53<th>MIX_MODE_AUX1_PREFADER</th> 54<td>Sets the aux bus of Controller 1 to pre-fader mode. If unspecified, post-fader mode results.</td> 55 </tr> 56 <tr> 57<th>MIX_MODE_AUX2_PREFADER</th> 58<td>Sets the aux bus of Controller 2 to pre-fader mode. If unspecified, post-fader mode results.</td> 59 </tr> 60 <tr> 61<th>MIX_MODE_AUX3_PREFADER</th> 62<td>Sets the aux bus of Controller 3 to pre-fader mode. If unspecified, post-fader mode results.</td> 63 </tr> 64 </table> 65 </TD> 66 </TR> 67 <TR> 68<TH>fader0</TH> 69<TD>Specifies the initial attenuation in 0.1-dB increments (1 = 0.1 dB) for the fader control of Controller 0.</TD> 70 </TR> 71 <TR> 72<TH>fader1</TH> 73<TD>Specifies the initial attenuation in 0.1-dB increments (1 = 0.1 dB) for the fader control of Controller 1.</TD> 74 </TR> 75 <TR> 76<TH>fader2</TH> 77<TD>Specifies the initial attenuation in 0.1-dB increments (1 = 0.1 dB) for the fader control of Controller 2.</TD> 78 </TR> 79 <TR> 80<TH>fader3</TH> 81<TD>Specifies the initial attenuation in 0.1-dB increments (1 = 0.1 dB) for the fader control of Controller 3.</TD> 82 </TR> 83 <TR> 84<TH>aux0</TH> 85<TD>Specifies the initial attenuation in 0.1-dB increments (1 = 0.1 dB) for the aux control of Controller 0.</TD> 86 </TR> 87 <TR> 88<TH>aux1</TH> 89<TD>Specifies the initial attenuation in 0.1-dB increments (1 = 0.1 dB) for the aux control of Controller 1.</TD> 90 </TR> 91 <TR> 92<TH>aux2</TH> 93<TD>Specifies the initial attenuation in 0.1-dB increments (1 = 0.1 dB) for the aux control of Controller 2.</TD> 94 </TR> 95 <TR> 96<TH>aux3</TH> 97<TD>Specifies the initial attenuation in 0.1-dB increments (1 = 0.1 dB) for the aux control of Controller 3.</TD> 98 </TR> 99 </TBODY> 100</TABLE> 101 102<H2>Return Values</H2> 103<P>None.</P> 104 105<H2>Description</H2> 106<P>The <code>MIXRmtSetVolumes</code> function sets each volume value needed for outputting audio from the controller speaker for the specified voice.</p> 107 108<p>Call this function after making regular audio output settings with <code>MIXInitChannel</code>.</p> 109 110<p><strong>Note:</strong> An Aux bus for the controller speaker is not implemented.</p> 111 112<h2>See Also</h2> 113<p class="reference"> 114<A href="./MIXInitChannel.html">MIXInitChannel</A> 115</p> 116 117<h2>Revision History</h2> 118<P> 1192006/08/03 Initial version.<br> 120</P> 121 122<hr><p>CONFIDENTIAL</p></body> 123</HTML>