Creative SB0350 Hardware Programming Guide - Page 128
Creative SB0350 Manual
View all Creative SB0350 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 128 highlights
B-4 File Format Block Type 1 This is a digitized sound data block. The Block Header is organized as follows: BYTE BYTE BYTE BYTE bBlockID; nBlockLen[3]; bTimeConstant; bPackMethod; // == 1 // 3-byte block length // 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 0 1 2 3 Meaning 8-bit PCM Creative 8-bit to 4-bit ADPCM Creative 8-bit to 3-bit ADPCM Creative 8-bit to 2-bit ADPCM