Japanese
PROGRAMMER'S GUIDEStream system library
BackForward
stream system library

7.Function specification-8


7.8 CD block operations


 one
View
table
 Title

function specification

 Function

Connection of aperture and CD buffer compartment

 Function name

STM_ConnectCdbuf

 No

8.1

Format
void STM_ConnectCdbuf(StmHn keystm, StmHn bufstm)
input
 keystm
 : Connection source stream handle
 bufstm
 : Connection destination stream handle (STM_CON_NULBUF when disconnecting)
output
none
function value
none
function
Connect the aperture and buffer compartments within the CD block.
remarks

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

  2. If you want to return to the original settings, specify the same stream handle as the connection source.

  3. This shows the connection when setting the stream key as an OR condition.

  4. Only CD streams can be specified.


 one
View
table
 Title

function specification

 Function

Moving CD buffer partition data

 Function name

STM_MoveCdbuf

 No

8.2

Format
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 if up to the end)
 dst
 : Destination stream handle
output
none
function value
none
function
Move sector data from the buffer compartment in the CD block to the aperture.
remarks

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

  2. Only CD streams can be specified.


 one
View
table
 Title

function specification

 Function

Clearing CD buffer partition data

 Function name

STM_EraseCdbuf

 No

8.3

Format
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 if up to the end)
output
none
function value
none
function
Erase the sector data in the CD buffer partition allocated to the stream.

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