MIXInitChannel

C Specification

#include <revolution.h>
#include <revolution/mix.h>
void MIXInitChannel(
                   AXVPB *p,       //pointer to voice
                   u32   mode,     //initial aux A, B, mute modes
                   int   input,    //initial input atten/gain
                   int   auxA,     //initial aux A atten/gain
                   int   auxB,     //initial aux B atten/gain
                   int   auxC,     //Aux C initial atten/gain
                   int   pan,      //initial pan
                   int   span,     //initial span
                   int   fader     //initial fader atten/gain
                   );

Arguments

p Specifies pointer to the AXVPB structure acquired from AX by the user. This pointer must be a valid pointer that is returned by AXAcquireVoice..
mode 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:
MIX_MODE_AUXA_PREFADER (specifies that Aux A is in pre fader mode; otherwise, Aux A is in post fader mode).
MIX_MODE_AUXB_PREFADER (specifies that Aux B is in pre fader mode; otherwise, Aux B is in post fader mode).
MIX_MODE_AUXC_PREFADER (specifies Aux C is in pre fader mode; otherwise, Aux C is in post fader mode).
MIX_MODE_MUTE (indicates that the input will be muted; otherwise, the input is not muted).
input Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the input control.
auxA Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the Aux A control.
auxB Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the Aux B control.
auxC Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the Aux C control.
pan Specifies the initial value for pan control (left = 0, center = 64, right = 127).
span Specifies the initial value for the span control (surround = 0, center = 64, front = 127).
fader Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the fader control.

Return Values

None.

Description

The MIXInitChannel function initializes a mixer channel to use on a voice. After successfully acquiring a voice from AX, call the MIXInitChannel function to use the mixer for that voice. The MIXInitChannel also sets all of the initial settings for the input channel.

See Also

AXAcquireVoice

Revision History

2006/03/01 Initial version.


CONFIDENTIAL