Miles Sound System SDK 7.2a

RAD_IOPGetFileHandleToSPUMemory

The function RAD_IOPGetFileHandleToSPUMemory creates a file handle that can be used to read from SPU memory.

U32 RAD_IOPGetFileHandleToSPUMemory(
  VOID_PTR IOP_address
);

In Parameters

IOP_address
Specifies the address in SPU memory that you want to start reading from.

Returns

File handle to the SPU memory.

Discussion

This function creates a file handle that can be used to read asynchronously from SPU memory.

This file handle can be used with the BinkOpen function to play a Bink movie out of SPU RAM, or with the AIL_open_stream function to play a sound file out of SPU RAM.

You can copy data from the SPU to the IOP by using these kinds of file handles and then using the async read function with the appropriate destination pointer type.

You don't have to close this type of file handle.


Group: The RAD_IOP API for the Sony PS2
Related Functions: RAD_IOPQueueAsyncOpenFile, RAD_IOPQueueAsyncReadAtBottom, RAD_IOPQueueAsyncReadAtTop
Related Basic Types: U32, VOID_PTR

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