| Miles Sound System SDK 7.2a |
The structure RAD_IOP_SPU_VOICE_STATE is a structure used with the RAD_IOPQueueAsyncSPUVoiceState function.
struct RAD_IOP_SPU_VOICE_STATE { U32 core; U32 voice; RAD_IOP_SPU_VOICE_STATE_CALLBACK callback; RAD_IOP_STATUS_VALUES status; S32 current_playing; U32 current_address; U32 current_left_volume; U32 current_right_volume; U32 current_envelope; }; |
This structure serves as both the input and the output of the RAD_IOPQueueAsyncSPUVoiceState function. You supply the 'in' parameters, and RAD_IOP returns the 'out' parameters.
If you don't have a callback set, then you can spin on the status field and wait for it to go greater than or equal to RAD_IOP_STATUS_COMPLETE. You then query the status for RAD_IOP_STATUS_DONE to determine if the query succeeded.
Group:
The RAD_IOP SPU Hardware Voice API for the Sony PS2
Related Functions:
RAD_IOPQueueAsyncSPUVoiceState, RAD_IOP_SPU_VOICE_STATE_CALLBACK
Related Basic Types:
RAD_IOP_STATUS_VALUES, S32, U32
For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.