PROGRAMMER'S GUIDEStream system library
BackForward
Stream system library

7. Function specifications-8


7.8 Manipulating the CD block


 List
 Title

Function specifications

 Function

Aperture and CD buffer partition connection

 Function Name

STM_ConnectCdbuf

 No

8.1

Form
void STM_ConnectCdbuf (StmHn keystm, StmHn bufstm)
input
 keystm
 : Source stream handle
 bufstm
 : Connected stream handle (STM_CON_NULBUF to disconnect)
output
none
Function value
none
function
Connect the aperture and buffer partition in the CD block.
remarks

  1. Reads from the aperture assigned to the connection source stream to the CD buffer partition assigned to the connection destination stream.

  2. To return to the original settings, specify the same stream handle as the connection source.

  3. Shows the connection when the stream key is set to the OR condition.

  4. Only CD streams can be specified.


 List
 Title

Function specifications

 Function

Moving CD buffer partition data

 Function Name

STM_MoveCdbuf

 No

8.2. 8.2

Form
void STM_MoveCdbuf (StmHn src, Sint32 spos, Sint32 snum, StmHn dst)
input
 src
 : Source stream handle
 spos
 : Sector position (first sector is STM_CDBUF_TOP)
 snum
 : Number of sectors (STM_CDBUF_END up to the end)
 dst
 : Destination stream handle
output
none
Function value
none
function
Move sector data from the buffer partition in the CD block to the aperture.
remarks

  1. Moves sector data from the CD buffer partition assigned to the source stream to the aperture assigned to the destination stream.

  2. Only CD streams can be specified.


 List
 Title

Function specifications

 Function

Erase CD buffer partition data

 Function Name

STM_EraseCdbuf

 No

8.3

Form
void STM_EraseCdbuf (StmHn stm, Sint32 spos, Sint32 snum)
input
 stm
 : Stream handle
 spos
 : Sector position (first sector is STM_CDBUF_TOP)
 snum
 : Number of sectors (STM_CDBUF_END up to the end)
output
none
Function value
none
function
Erases the sector data in the CD buffer partition allocated to the stream.

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