Miles Sound System SDK 7.2a

RAD_IOPSetSPUVoiceStartAddress

The function RAD_IOPSetSPUVoiceStartAddress sets the address to play from for one or more SPU voices.

S32 RAD_IOPSetSPUVoiceStartAddress(
  U32 core0_voice_mask,
  U32 core1_voice_mask,
  U32 start_address
);

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.
start_address
Specifies the starting address in SPU RAM to begin playback at.

Returns

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

Discussion

This function tells the SPU where to begin playback for one or more SPU voices.

Usually, you will load the VAG file into an SPU RAM address with one of the RAD_IOP async IO calls and then use this function to point one or more voices at it.


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

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