Creative SB0350 Programming Manual page 131

Hardware programming guide
Table of Contents

Advertisement

During digitized sound output, the CT-VOICE and CTVDSK drivers
update the digitized sound status word with this value when the marker is
encountered. You program can check for the desired marker value to
perform synchronization with the digitized sound output process.
Block Type 5
This block enables you to embed a null-terminated ASCII string in the .VOC file. The
Block Header is organized as follows:
BYTE
bBlockID;
BYTE
nBlockLen[3];
BYTE
szString[];
Here is a discussion of various fields:
bBlockID
The Block Type identifier is 5.
nBlockLen
Length of the block (in bytes), excluding the bBlockID and nBlockLen
fields.
The value is the length of the null-terminated ASCII string (null
inclusive).
szString
This is variable length field which specifies a null-terminated ASCII
string. The length of this field is the string length (null inclusive).
This field is for a program that requires ASCII information on the .VOC file such as
name, type or remarks. You may choose to ignore this Block Type during the digitized
sound block manipulation.
Block Type 6
This block indicates the beginning of a repeat loop. The data block between this
block and the next End Repeat Block (Block Type 7) will be repeated. The Block
Header is organized as follows:
BYTE
bBlockID;
BYTE
nBlockLen[3];
WORD
wRepeatTimes
File Format
// == 5
// 3-byte block length
// Null-terminated string
// == 6
// 3-byte block length
B-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents