B-4
File Format
Block Type 1
This is a digitized sound data block. The Block Header is organized as follows:
BYTE
bBlockID;
// == 1
BYTE
nBlockLen[3];
// 3-byte block length
BYTE
bTimeConstant;
BYTE
bPackMethod;
// Packing Method
The header is followed immediately by the digitized sound data.
Here is a discussion of various fields:
bBlockID
The Block Type identifier is 1.
nBlockLen
Length of the block (in bytes), excluding the bBlockID and nBlockLen
fields.
The value here will be the digitized sound data length plus 2.
bTimeConstant
This is a 1-byte field which indicates the Time Constant of the digitized
sound data of this block. The Time Constant is defined as follows:
Time Constant = 65536 - (256 000 000/( channels * sampling rate))
The channels parameter is 1 for mono and 2 for stereo.
Only the high byte of the result is stored here. For instance, for a
10000Hz mono digitized sound, the Time Constant is set to 9C hex using
the following calculation:
Time Constant
= 65536 - (256 000 000 / 10 000)
= 39936 (09C00H)
bPackMethod
This is an 1 byte field which indicates the packing method used by the
digitized sound data of this block. It is defined as:
Value
Meaning
0
8-bit PCM
1
Creative 8-bit to 4-bit ADPCM
2
Creative 8-bit to 3-bit ADPCM
3
Creative 8-bit to 2-bit ADPCM
Содержание SB0350
Страница 29: ......
Страница 71: ...Mixer Chip Programming 4 13 Figure 4 4 Logical Schematic of the Output Mixing Paths ...
Страница 72: ...4 14 Mixer Chip Programming Figure 4 5 Logical Schematic of the Input Mixing Paths ...
Страница 141: ...Index3 ...