PROGRAMMER'S GUIDEStream system library
BackForward
Stream system library


Table 7.1 shows a list of stream system functions.
[C] is a function that issues a command to a CD block. For issuing these functions, follow the command issuing rules of the CD communication interface.

Table 7.1 Function list (1)
 function
 Function name
 number
 Initialize
 1.0
 Stream system initialization
 STM_Init [-]
 1.1
 Stream system reset
 STM_Reset [C]
 1.2
Stream group
 2.0
 Opening a stream group
 STM_OpenGrp [-]
 2.1
 Stream group close
 STM_CloseGrp [C]
 2.2
 Get the number of streams
 STM_GetStmNum [-]
 2.3
 Get stream handle
 STM_GetStmHndl [-]
 2.4
 Registration of buffer size monitoring function
 STM_SetCdbufFunc [-]
 2.5
stream
 3.0
 Opening a stream by file identifier
 STM_OpenFid [C]
 3.1 3.1
 Opening a stream by playback range
 STM_OpenFrange [C]
 3.2
 Opening a resident stream
 STM_OpenResi [C]
 3.3
 Stream close
 STM_Close [C]
 3.4 3.4
 Stream key settings
 STM_SetKey [C]
 3.5
 Get stream information
 STM_GetInfo [C]
 3.6
 Conversion from sector count to word count
 STM_SctToWord [C]
 3.7
 Conversion from word count to sector count
 STM_WordToSct [C]
 3.8
 Stream handle alias settings
 STM_SetAlias [-]
 3.9
 Stream handle dealiasing
 STM_UnsetAlias [-]
 3.10
 Transfer settings
4.0
 Transfer area settings
 STM_SetTrBuf [-]
 4.1
 Transfer function registration
 STM_SetTrFunc [-]
 4.2
 Start transfer in transfer function
 STM_StartTrans [C]
 4.3
 Opening and closing the transfer gate
 STM_SetTrGate [-]
 4.4
 Setting the maximum number of transfer sectors
 STM_SetTrPara [-]
 4.5
 Transfer start FAD setting
 STM_SetTrFad [C]
 4.6
 Transfer mode setting
 STM_SetTrMode [-]
 4.7
 Reset transfer area
 STM_ResetTrBuf [-]
 4.8
 Get read information
 5.0
 Get the number of sectors in the CD buffer partition
 STM_GetNumCdbuf [C]
 5.1
 Acquisition of read sector information
 STM_GetSctInfo [C]
 5.2.
Transfer information acquisition
 6.0 6.0
 Acquisition of the number of data in the transfer area
 STM_GetLenTrBuf [-]
 6.1
 Full transfer area check
 STM_IsTrBufFull [-]
 6.2.
 Check during transfer
 STM_IsTrans [-]
 6.3
 Stream server execution
 7.0 7.0
 Specifying the server execution group (immediate return)
 STM_NwSetExecGrp [C]
 7.1
 Specifying the server execution group (returning to completion)
 STM_SetExecGrp [C]
 7.2
 Server execution
 STM_ExecServer [C]
 7.3
 Playback position setting
 STM_MovePickup [C]
 7.4.
 Specifying the loop start stream
 STM_SetLoop [-]
 7.5 7.5
 Get loop counter
 STM_GetLoopCnt [-]
 7.6
 Get execution status
 STM_GetExecStat [C]
 7.7
 Checking the end of stream access
 STM_IsComplete [C]
 7.8
 Stream data transfer
 STM_ExecTrans [C]
 7.9
 CD block operation
 8.0 8.0
 Aperture and CD buffer partition connection
 STM_ConnectCdbuf [C]
 8.1
 Moving CD buffer partition data
 STM_MoveCdbuf [C]
 8.2. 8.2
 Erase CD buffer partition data
 STM_EraseCdbuf [C]
 8.3
Error handling
 9.0
 Error function registration
 STM_SetErrFunc [-]
 9.1
 Getting error status
 STM_GetErrStat [-]
 9.2
 Read error recovery
 STM_Recover [C]
 9.3


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