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>MIXInitChannel</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">MIXInitChannel</H1>
12<H2>C Specification</H2>
13<DL>
14  <DD>
15  <PRE><CODE>#include &lt;revolution.h&gt;
16#include &lt;revolution/mix.h&gt;</CODE></PRE>
17  <DD>
18  <PRE><CODE>void MIXInitChannel(
19                   AXVPB *p,       //pointer to voice
20                   u32   mode,     //initial aux A, B, mute modes
21                   int   input,    //initial input atten/gain
22                   int   auxA,     //initial aux A atten/gain
23                   int   auxB,     //initial aux B atten/gain
24                   int   auxC,     //Aux C initial atten/gain
25                   int   pan,      //initial pan
26                   int   span,     //initial span
27                   int   fader     //initial fader atten/gain
28                   );</CODE></PRE>
29</DL>
30<H2>Arguments</H2>
31<TABLE border="1" cellpadding="3" cellspacing="0.1">
32  <TBODY>
33    <TR>
34<TD width="120" bgcolor="#ffffe8"><EM><STRONG><FONT face="Courier New">p</FONT></STRONG></EM></TD>
35<TD width="520">Specifies pointer to the AXVPB structure acquired from AX by the user. This pointer must be a valid pointer that is returned by <a href="../../ax/Voice_Allocation/AXAcquireVoice.html"><CODE>AXAcquireVoice</CODE></a>..</TD>
36    </TR>
37    <TR>
38<TD width="120" bgcolor="#ffffe8"><EM><STRONG><FONT face="Courier New">mode</FONT></STRONG></EM></TD>
39<TD width="520">Specifies the initial mode for Aux A, Aux B, and the mute controls. This value is the bits identified by the OR logic within the following:<br>
40        <table border="1" cellspacing="0.1" width="500">
41          <tr>
42<td width="150"><CODE>MIX_MODE_AUXA_PREFADER</CODE></td>
43<td width="350">(specifies that Aux A is in pre fader mode;  otherwise, Aux A is in post fader mode).<br></td>
44          </tr>
45          <tr>
46<td width="150"><CODE>MIX_MODE_AUXB_PREFADER</CODE></td>
47<td width="350">(specifies that Aux B is in pre fader mode;  otherwise, Aux B is in post fader mode).<br></td>
48          </tr>
49          <tr>
50<td width="150"><CODE>MIX_MODE_AUXC_PREFADER</CODE></td>
51<td width="350">(specifies Aux C is in pre fader mode;  otherwise, Aux C is in post fader mode).</td>
52          </tr>
53          <tr>
54<td width="150"><CODE>MIX_MODE_MUTE</CODE></td>
55<td width="350">(indicates that the input will be muted;  otherwise, the input is not muted).</td>
56          </tr>
57        </table>
58      </TD>
59    </TR>
60    <TR>
61<TD width="120" bgcolor="#ffffe8"><CODE><EM><STRONG>input</STRONG></EM></CODE></TD>
62<TD width="520">Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the input control.</TD>
63    </TR>
64    <TR>
65<TD width="120" bgcolor="#ffffe8"><CODE><EM><STRONG><FONT face="Courier New">auxA</FONT></STRONG></EM></CODE></TD>
66<TD width="520">Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the Aux A control.</TD>
67    </TR>
68    <TR>
69<TD width="120" bgcolor="#ffffe8"><CODE><EM><STRONG><FONT face="Courier New">auxB</FONT></STRONG></EM></CODE></TD>
70<TD width="520">Specifies the initial attenuation in 0.1 dB increments&nbsp;(1 = 0.1 dB) for the Aux B control.</TD>
71    </TR>
72    <TR>
73<TD width="120" bgcolor="#ffffe8"><CODE><EM><STRONG><FONT face="Courier New">auxC</FONT></STRONG></EM></CODE></TD>
74<TD width="520">Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the Aux C control.</TD>
75    </TR>
76    <TR>
77<TD width="120" bgcolor="#ffffe8"><CODE><EM><STRONG><FONT face="Courier New">pan</FONT></STRONG></EM></CODE></TD>
78<TD width="520">Specifies the initial value for pan control (left = 0, center = 64, right = 127).</TD>
79    </TR>
80    <TR>
81<TD width="120" bgcolor="#ffffe8"><CODE><EM><STRONG><FONT face="Courier New">span</FONT></STRONG></EM></CODE></TD>
82<TD width="520">Specifies the initial value for the span control (surround = 0, center = 64, front = 127).</TD>
83    </TR>
84    <TR>
85<TD width="120" bgcolor="#ffffe8"><CODE><EM><STRONG><FONT face="Courier New">fader</FONT></STRONG></EM></CODE></TD>
86<TD width="520">Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the fader control.</TD>
87    </TR>
88  </TBODY>
89</TABLE>
90<H2>Return Values</H2>
91<P>None.</P>
92<H2>Description</H2>
93<P>The <CODE>MIXInitChannel</CODE> function initializes a mixer channel to use on a voice. After successfully acquiring a voice from AX, call the <CODE>MIXInitChannel</CODE> function to use the mixer for that voice. The <CODE>MIXInitChannel</CODE> also sets all of the initial settings for the input channel.</P>
94
95<h2>See Also</h2>
96<p>
97<A href="../../ax/Voice_Allocation/AXAcquireVoice.html"><CODE>AXAcquireVoice</CODE></A>
98</p>
99
100<h2>Revision History</h2>
101<P>2006/03/01 Initial version.</P>
102
103<hr>
104<P>CONFIDENTIAL</p>
105</BODY>
106</HTML>