Miles Sound System SDK 7.2a

RAD_IOPSetSPUVoiceVolume

The function RAD_IOPSetSPUVoiceVolume sets the volume for one or more SPU voices.

S32 RAD_IOPSetSPUVoiceVolume(
  U32 core0_voice_mask,
  U32 core1_voice_mask,
  S32 left,
  S32 right
);

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.
left
Specifies the left speaker volume from 0 to 0x3fff, or -1 to leave unchanged.
right
Specifies the right speaker volume from 0 to 0x3fff, or -1 to leave unchanged.

Returns

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

Discussion

This function tells the SPU to set the baseline volume of one or more SPU voices.

The final volume level is further controlled by the envelope settings and the master volume levels.


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

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