Miles Sound System SDK 7.2a

RAD_IOPSetSPUVoiceMixOnOff

The function RAD_IOPSetSPUVoiceMixOnOff sets the mix on-off routing for one or more SPU voices.

S32 RAD_IOPSetSPUVoiceMixOnOff(
  U32 core0_voice_mask,
  U32 core1_voice_mask,
  S32 dry_left_onoff,
  S32 dry_right_onoff,
  S32 wet_left_onoff,
  S32 wet_right_onoff
);

In Parameters

core0_voice_mask
Specifies the bit mask of the voices on core 0 to set.
core1_voice_mask
Specifies the bit mask of the voices on core 1 to set.
dry_left_onoff
1 steers the voice to the left speaker dry path; 0 steers the voice away from the left dry path; -1 means leave unchanged.
dry_right_onoff
1 steers the voice to the right speaker dry path; 0 steers the voice away from the right dry path; -1 means leave unchanged.
wet_left_onoff
1 steers the voice to the left speaker wet path; 0 steers the voice away from the left wet path; -1 means leave unchanged.
wet_right_onoff
1 steers the voice to the right speaker wet path; 0 steers the voice away from the right wet path; -1 means leave unchanged.

Returns

Returns non-zero on success, or zero on failure.

Discussion

This function tells the SPU to route one or more SPU voices to specific sound outputs.

The dry left and right settings control whether to send this voice to the non-reverb path. The wet left and right settings control whether to send this voice to the reverb path.

By default, the voices are configured to go to the dry left and right only.


Group: The RAD_IOP SPU Hardware Voice API for the Sony PS2
Related Basic Types: S32, U32

For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.