Miles Sound System SDK 7.2a

RAD_IOPQueueAsyncSPUVoiceState

The function RAD_IOPQueueAsyncSPUVoiceState asynchronously queries the state of an SPU voice.

S32 RAD_IOPQueueAsyncSPUVoiceState(
  RAD_IOP_SPU_VOICE_STATE *state_data
);

Out Parameters

state_data
Specifies the input and output parameters for the voice state.

Returns

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

Discussion

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

You fill out the core field, voice field, and optionally the 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. If the status is set to RAD_IOP_STATUS_DONE, then the current state fields have been set correctly.

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_IOPQueueAsyncSPUGlobalState, RAD_IOP_SPU_VOICE_STATE_CALLBACK
Related Basic Types: RAD_IOP_STATUS_VALUES, S32
Related Structures: RAD_IOP_SPU_VOICE_STATE

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