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<H2>C Specification</H2> 13<DL> 14 <DD> 15 <PRE><CODE>#include <revolution.h> 16#include <revolution/mix.h></CODE></PRE> 17 </dd> 18 <dd> 19 <PRE><CODE>#define MIX_MODE_AUX0_PREFADER 0x00000001 20#define MIX_MODE_AUX1_PREFADER 0x00000002 21#define MIX_MODE_AUX2_PREFADER 0x00000004 22#define MIX_MODE_AUX3_PREFADER 0x00000008</CODE></PRE> 23 </dd> 24 <DD> 25 <PRE><CODE>void MIXRmtSetVolumes( 26 AXVPB *axvpb, // Pointer to voice 27 u32 mode, // aux mode of controller 0, 1, 2, 3 28 int fader0, // Initial fader attenuation/gain for Controller 0 29 int fader1, // Initial fader attenuation/gain for Controller 1 30 int fader2, // Initial fader attenuation/gain for Controller 2 31 int fader3, // Initial fader attenuation/gain for Controller 3 32 int aux0, // Initial aux attenuation/gain for Controller 0 33 int aux1, // Initial aux attenuation/gain for Controller 1 34 int aux2, // Initial aux attenuation/gain for Controller 2 35 int aux3, // Initial aux attenuation/gain for Controller 3 36 );</CODE></PRE></dd> 37 38</DL> 39 40<H2>Arguments</H2> 41 42<TABLE border="1" cellpadding="3" cellspacing="0.1"> 43 <TBODY> 44 <TR> 45<TD width="120" bgcolor="#ffffe8"><EM><STRONG><FONT face="Courier New">p</FONT></STRONG></EM></TD> 46<TD width="520">Specifies pointer to the AXVPB structure acquired from AX by the user.</td> 47 </TR> 48 <TR> 49<TD width="120" bgcolor="#ffffe8"><EM><STRONG><FONT face="Courier New">mode</FONT></STRONG></EM></TD> 50<TD width="520">Specifies the initial mode of the aux bus for Controllers 0, 1, 2, 3. This value is the bits identified by the OR logic within the following:<br> 51 <table border="1" cellspacing="0.1" width="500"> 52 <tr> 53<td width="150"><FONT face="Courier New">MIX_MODE_AUX0_PREFADER</FONT></td> 54<td width="350">Sets the aux bus of Controller 0 to pre-fader mode. If unspecified, post fader mode results.</td> 55 </tr> 56 <tr> 57<td width="150"><FONT face="Courier New">MIX_MODE_AUX1_PREFADER</FONT></td> 58<td width="350">Sets the aux bus of Controller 1 to pre-fader mode. If unspecified, post fader mode results.</td> 59 </tr> 60 <tr> 61<td width="150"><FONT face="Courier New">MIX_MODE_AUX2_PREFADER</FONT></td> 62<td width="350">Sets the aux bus of Controller 2 to pre-fader mode. If unspecified, post fader mode results.</td> 63 </tr> 64 <tr> 65<td width="150"><FONT face="Courier New">MIX_MODE_AUX3_PREFADER</FONT></td> 66<td width="350">Sets the aux bus of Controller 3 to pre-fader mode. If unspecified, post fader mode results.</td> 67 </tr> 68 </table> 69 </TD> 70 </TR> 71 <TR> 72<TD width="120" bgcolor="#ffffe8"><EM><STRONG><FONT face="Courier New">fader0</FONT></STRONG></EM></TD> 73<TD width="520">Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the fader control of Controller 0.</TD> 74 </TR> 75 <TR> 76<TD width="120" bgcolor="#ffffe8"><EM><STRONG><FONT face="Courier New">fader1</FONT></STRONG></EM></TD> 77<TD width="520">Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the fader control of Controller 1.</TD> 78 </TR> 79 <TR> 80<TD width="120" bgcolor="#ffffe8"><EM><STRONG><FONT face="Courier New">fader2</FONT></STRONG></EM></TD> 81<TD width="520">Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the fader control of Controller 2.</TD> 82 </TR> 83 <TR> 84<TD width="120" bgcolor="#ffffe8"><EM><STRONG><FONT face="Courier New">fader3</FONT></STRONG></EM></TD> 85<TD width="520">Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the fader control of Controller 3.</TD> 86 </TR> 87 <TR> 88<TD width="120" bgcolor="#ffffe8"><EM><STRONG><FONT face="Courier New">aux0</FONT></STRONG></EM></TD> 89<TD width="520">Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the aux control of Controller 0.</TD> 90 </TR> 91 <TR> 92<TD width="120" bgcolor="#ffffe8"><EM><STRONG><FONT face="Courier New">aux1</FONT></STRONG></EM></TD> 93<TD width="520">Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the aux control of Controller 1.</TD> 94 </TR> 95 <TR> 96<TD width="120" bgcolor="#ffffe8"><EM><STRONG><FONT face="Courier New">aux2</FONT></STRONG></EM></TD> 97<TD width="520">Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the aux control of Controller 2.</TD> 98 </TR> 99 <TR> 100<TD width="120" bgcolor="#ffffe8"><EM><STRONG><FONT face="Courier New">aux3</FONT></STRONG></EM></TD> 101<TD width="520">Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the aux control of Controller 3.</TD> 102 </TR> 103 </TBODY> 104</TABLE> 105 106<H2>Return Values</H2> 107 108<P>None.</P> 109 110<H2>Description</H2> 111 112<P><code>MIXRmtSetVolumes</code> sets each volume value needed for outputting audio from the controller speaker for the specified voice.</p> 113 114<p>Call this function after making regular audio output settings using <code>MIXInitChannel</code>.</p> 115 116<p><strong>Note:</strong> An Aux bus for the controller speaker is not implemented.</p> 117 118<h2>See Also</h2> 119 120<p><A href="./MIXInitChannel.html"><code>MIXInitChannel</code></A> 121</p> 122<h2>Revision History</h2> 123 124<P>2006/08/03 Initial version.</P> 125 126<hr> 127<P>CONFIDENTIAL</p> 128</BODY> 129</HTML>