Japanese
★ PROGRAMMER'S GUIDE ★ Stream system library
▲ Back | Forward ▼
stream system library

7.Function specification-1


7.1 Initialization


 one
View
table
 Title

function specification

 Function

Stream system initialization

 Function name

STM_Init

 No

1.1

Format
Bool STM_Init(Sint32 grp_open_max, Sint32 stm_open_max, void *work)
input
grp_open_max : Maximum number of stream groups that can be opened at the same time (from 1 to 24)
stm_open_max : Maximum number of streams to open simultaneously (1 to 24)
work :Work area
output
none
function value
TRUE : If initialization was successful
FALSE : If the initialization cannot be performed normally.
function
Immediately after the program starts, it initializes to use the stream system.
remarks
  1. It must be done immediately after GFS_Init.
    The maximum number of files that can be opened simultaneously (open_max) specified in GFS_Init must be greater than or equal to stm_open_max.
  2. The size of the work area is determined by STM_WORK_SIZE(grp_open_max, stm_open_max) bytes. Place work on a 4-byte boundary.

 one
View
table
 Title

function specification

 Function

Resetting the stream system

 Function name

STM_Reset

 No

1.2

Format
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 stream access and initializes all information.)

▲ Back | Forward ▼
★ PROGRAMMER'S GUIDE ★ Stream system library
Copyright SEGA ENTERPRISES, LTD., 1997