Miles Sound System SDK 7.2a

RAD_IOPQueueAsyncSPUGlobalState

The function RAD_IOPQueueAsyncSPUGlobalState asynchronously queries the state of the SPU cores.

S32 RAD_IOPQueueAsyncSPUGlobalState(
  RAD_IOP_SPU_GLOBAL_STATE *state_data
);

Out Parameters

state_data
Specifies the input and output parameters for the global SPU states.

Returns

Non-zero if the query was queued successfully, zero for failure.

Discussion

This function queues up a global SPU query to happen in the background.

You fill out the optional callback field (or set it to zero), and then call this function.

You can check for completion using the callback, or just poll the status field. When the status becomes RAD_IOP_STATUS_DONE, the current state fields are valid.

You can use this field to see where the current playback position is, to see whether the voice is still playing, or to check the current envelope level.


Group: The RAD_IOP SPU Hardware Voice API for the Sony PS2
Related Functions: RAD_IOPFindNonPlayingVoiceMask, RAD_IOPQueueAsyncSPUVoiceState, RAD_IOP_SPU_GLOBAL_STATE_CALLBACK
Related Basic Types: RAD_IOP_STATUS_VALUES, S32
Related Structures: RAD_IOP_SPU_GLOBAL_STATE

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