PROGRAMMER'S GUIDEStream system library
BackForward
Stream system library

7. Function specifications-1


7.1 Initialization


 List
 Title

Function specifications

 Function

Stream system initialization

 Function Name

STM_Init

 No

1.1

Form
Bool STM_Init (Sint32 grp_open_max, Sint32 stm_open_max, void * work)
input
grp_open_max : Maximum number of stream groups to open at the same time (1 to 24)
stm_open_max : Maximum number of streams to open at the same time (1 to 24)
work : Work area
output
none
Function value
TRUE : When it can be initialized normally
FALSE : When it cannot be initialized normally
function
Immediately after starting the program, it will be initialized to use the stream system.
remarks
  1. Must always be done immediately after GFS_Init.
    The maximum number of files that can be opened at the same time (open_max) specified by GFS_Init should be stm_open_max or more.
  2. The size of the work area is calculated by STM_WORK_SIZE (grp_open_max, stm_open_max) bytes. Place work on a 4-byte boundary.

 List
 Title

Function specifications

 Function

Stream system reset

 Function Name

STM_Reset

 No

1.2

Form
void STM_Reset (void)
input
none
output
none
Function value
none
function
Closes all open stream groups and streams and resets the stream system. (Stops access to the stream and initializes all information.)

BackForward
PROGRAMMER'S GUIDEStream system library
Copyright SEGA ENTERPRISES, LTD., 1997