Sound Function - Memory Block Transfer Function

sdMemBlkSetPrm

Destroys a Memory Block handle

FORMAT

SDE_ERR sdMemBlkSetPrm( handle, *ptr, data_size, cb_func, *cb_1st_arg )
SDMEMBLK handle
Void *ptr
Uint32 data_size
SD_MEMBLK_CALLBACK_FUNC cb_func
Void *cb_1st_arg

PARAMETER

 handle  Memory Block handle 
 ptr  Pointer to first Memory Block to transfer 
 data_size  Block size 
 cb_func  Callback function  
 cb_1st_arg  Registers the first parameter of the callback function 

RETURN

 SDE_ERR_NO_INIT  The Sound Library has not been initialized 
 SDE_ERR_HANDLE_NULL  The handle was NULL 
 SDE_ERR_HANDLE_ILLEGAL_VALUE  An illegal address was specified for the handle 

DESCRIPTION

Sets the parameters for a Memory Block handle.

The following values can be specified for the argument cb_func, which registers the callback function.

 SDD_MEMBLK_NO_FUNC   Do not register the callback function. 
 SDD_MEMBLK_SYNC_FUNC   Use the callback function for synchronizing the internal library. Simply specifying this establishes a synchronous mode. 
 Other ...   An address specified here is registered as a callback function. 

SDD_MEMBLK_SYNC_FUNC Simply specifying this establishes a synchronous mode.

Registers the first parameter of the callback function. Specify NULL if not needed.


sdMemBlkSetPrm
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999