Creative SB0350 Programming Manual page 133

Hardware programming guide
Table of Contents

Advertisement

Block Type 8
This is a special block that carries only the digitized sound attributes. It MUST precede
Block Type 1. Usually, this block precedes the stereo or high speed digitized sound
data. The Block Header is organized as follows:
BYTE
bBlockID;
BYTE
nBlockLen[3];
WORD
wTimeConstant;
BYTE
bPackMethod;
BYTE
bVoiceMode;
The header is followed immediately by Block Type 1.
Here is a discussion of various fields:
bBlockID
The Block Type identifier is 8.
nBlockLen
Length of the block (in bytes), excluding the bBlockID and nBlockLen
fields.
The value is 4.
wTimeConstant
This is a 2-byte field which indicates the Time Constant of the digitized
sound data in the Block Type 1. The calculation of the Time Constant is
the same as described on Block Type 1, but the whole word of the result
is stored here.
For a 44 100Hz sampling rate mono digitized sound, the Time Constant is
calculated as follows:
Time Constant
// == 8
// 3-byte block length
// 2-byte Time Constant
// Packing Method
// mono or stereo
= 65536 - (256 000 000 / 44 100)
= 59732 (0E95H)
File Format
B-9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents