#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
);
| p | Specifies a pointer to the AXVPB structure acquired from AX by the user. This must be a valid pointer 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:
|
||||||||
| input | Specifies the initial attenuation for input control in 0.1-dB increments (1 = 0.1 dB). | ||||||||
| auxA | Specifies the initial attenuation for Aux A control in 0.1-dB increments (1 = 0.1 dB). | ||||||||
| auxB | Specifies the initial attenuation for Aux B control in 0.1-dB increments (1 = 0.1 dB). | ||||||||
| auxC | Specifies the initial attenuation for AuxC control in 0.1-dB increments (1 = 0.1 dB). | ||||||||
| pan | Specifies the initial value for pan control (left = 0, center = 64, right = 127). | ||||||||
| span | Specifies the initial value for span control (surround = 0, center = 64, front = 127). | ||||||||
| fader | Specifies the initial attenuation for fader control in 0.1-dB increments (1 = 0.1 dB). |
None.
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 function also sets all the initial settings for the input channel.
2006/03/01 Initial version.
CONFIDENTIAL