#include <revolution.h>
#include <revolution/mix.h>
#define MIX_MODE_AUX0_PREFADER 0x00000001
#define MIX_MODE_AUX1_PREFADER 0x00000002
#define MIX_MODE_AUX2_PREFADER 0x00000004
#define MIX_MODE_AUX3_PREFADER 0x00000008
void MIXRmtSetVolumes(
AXVPB *axvpb, // Pointer to voice
u32 mode, // aux mode of controller 0, 1, 2, 3
int fader0, // Initial fader attenuation/gain for Controller 0
int fader1, // Initial fader attenuation/gain for Controller 1
int fader2, // Initial fader attenuation/gain for Controller 2
int fader3, // Initial fader attenuation/gain for Controller 3
int aux0, // Initial aux attenuation/gain for Controller 0
int aux1, // Initial aux attenuation/gain for Controller 1
int aux2, // Initial aux attenuation/gain for Controller 2
int aux3, // Initial aux attenuation/gain for Controller 3
);| p | Specifies pointer to the AXVPB structure acquired from AX by the user. | ||||||||
| mode | 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:
|
||||||||
| fader0 | Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the fader control of Controller 0. | ||||||||
| fader1 | Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the fader control of Controller 1. | ||||||||
| fader2 | Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the fader control of Controller 2. | ||||||||
| fader3 | Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the fader control of Controller 3. | ||||||||
| aux0 | Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the aux control of Controller 0. | ||||||||
| aux1 | Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the aux control of Controller 1. | ||||||||
| aux2 | Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the aux control of Controller 2. | ||||||||
| aux3 | Specifies the initial attenuation in 0.1 dB increments (1 = 0.1 dB) for the aux control of Controller 3. |
None.
MIXRmtSetVolumes sets each volume value needed for outputting audio from the controller speaker for the specified voice.
Call this function after making regular audio output settings using MIXInitChannel.
Note: An Aux bus for the controller speaker is not implemented.
2006/08/03 Initial version.
CONFIDENTIAL