MIXRmtSetVolumes

Syntax

#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
                     );

Arguments

p Specifies a 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, and 3. This value is the bits identified by the OR logic within the following:
MIX_MODE_AUX0_PREFADER Sets the aux bus of Controller 0 to pre-fader mode. If unspecified, post fader mode results.
MIX_MODE_AUX1_PREFADER Sets the aux bus of Controller 1 to pre-fader mode. If unspecified, post-fader mode results.
MIX_MODE_AUX2_PREFADER Sets the aux bus of Controller 2 to pre-fader mode. If unspecified, post-fader mode results.
MIX_MODE_AUX3_PREFADER Sets the aux bus of Controller 3 to pre-fader mode. If unspecified, post-fader mode results.
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.

Return Values

None.

Description

The MIXRmtSetVolumes function 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 with MIXInitChannel.

Note: An Aux bus for the controller speaker is not implemented.

See Also

MIXInitChannel

Revision History

2006/08/03 Initial version.


CONFIDENTIAL