#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 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:
|
||||||||
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. |
None.
The MIXInitChannel function initializes a mixer channel to use on a voice. After sucessfully 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.
03/01/2006 Initial version.