Creative SB0350 Hardware Programming Guide - Page 133

Creative SB0350 Manual

Page 133 highlights

File Format B-9 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 BYTE WORD BYTE BYTE bBlockID; nBlockLen[3]; wTimeConstant; bPackMethod; bVoiceMode 8 3-byte block length 2-byte Time Constant Packing Method mono or stereo 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 = 65536 - (256 000 000 / 44 100) = 59732 (0E95H)

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141

File Format
B-9
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;
// == 8
BYTE
nBlockLen[3];
// 3-byte block length
WORD
wTimeConstant;
// 2-byte Time Constant
BYTE
bPackMethod;
// Packing Method
BYTE
bVoiceMode;
// mono or stereo
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
= 65536 - (256 000 000 / 44 100)
= 59732 (0E95H)