PROGRAMMER'S GUIDEStream system library
BackForward
Stream system library

3. Basic matters


3.1 Definition of terms and abbreviations

Table 3.1 Glossary
 the term
 meaning
 stream
 A logically continuous flow of data distinguished by subheaders.
 Stream key
 The key to read the stream into the CD buffer. Frame address range, file number (FN), channel number (CN),
It consists of submode (SM) and coding information (CI).
Mask pattern comparison pattern can be specified for submode (SM) and coding information (CI).
({SM | CI} & mask pattern == comparison pattern)
Read the sector that becomes.
 Stream group
 A collection of multiple streams.
 Final stream
 The last stream played in a stream that belongs to a stream group.
 Loop start stream
 The return stream after playing the last stream in the stream group.
 Number of loops
 The number of times to move the pickup to the loop start stream after playing the last stream.
 Transfer start FAD
 The position of the pickup that starts transferring the data read into the CD buffer to the buffer in the program.
 Transfer gate
 A gate for transferring the data read into the CD buffer to a buffer in the program. By closing this, you can store the data in the stream in the CD buffer.

Figure 3.1 Stream system data flow

┌─────────┐ 
│ CD drive │ 
└────┬────┘ 
│ Read ──┐ 
↓ │ 
┌─────────┐ │ 
│ CD buffer │ ├ Stream access └────┬────┘ │ 
│ Extraction / transfer │ 
↓ ──┘ 
┌─────────┐ 
│ Main CPU area │ 
└─────────┘ 

Table 3.2 List of abbreviations
 Abbreviation
 meaning
 explanation
 GFS
 general file system
 File system
 STM
 stream
 stream
 StmGrpHn
 stream group handle
 Handle for stream group operation
 StmHn
 stream handle
 Handle for stream operation
 TrMode
 transfer mode
 Transfer mode
 bn
 buffer number
 Buffer partition number
 ci
 coding information
 Coding information
 cn
 chanel number
 Channel number
 fad
 frame address
 Frame address
 fid
 file ID
 File identifier
 fn
 file number
 File number
 fname
 file name
 file name
 frange
 fad range
 Playback range (frame address range)
 loopstm
 loop stream
 Loop start stream
 sinfo
 sector information
 Sector information
 sm
 sub mode
 Submode

3.2 Name restrictions

The stream system library uses the following names for function names, variable names, type names, and macro names.

 Function name, variable name
 ST ~ and st ~
 Model name
 St ~
 Macro name
 ST ~

The libraries required to use the stream system library use the following global symbols.

Table 3.3 Symbol name of each library
 Library name
 Symbol to use
 File system
 GF ~, gf ~, Gf ~
 CD communication interface
 CD ~, cd ~, Cd ~

Application programs should not use these symbols.


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