Creative SB0350 Hardware Programming Guide - Page 129

Creative SB0350 Manual

Page 129 highlights

File Format B-5 Some points to note for Block Type 1: 1. If this block is preceded by Block Type 8 (discussed later), the digitized sound attributes on Block Type 8 should be used. The digitized sound attributes in this block should be ignored. If this block is alone, the digitized sound channels should be defaulted to mono. 2. Block Type 2 This is a digitized sound continuation block. The Block Header is organized as follows: BYTE BYTE bBlockID; nBlockLen[3]; // == 2 // 3-byte block length The header is followed immediately by the digitized sound data. Here is a discussion of various fields: bBlockID The Block Type identifier is 2. nBlockLen Length of the block (in bytes), excluding the bBlockID and nBlockLen fields. This block type will only be used when the digitized sound data size exceeds the 3-byte block length (16 megabytes). Block Type 3 This block specifies the pause period for the digitized sound before next block of digitized sound data is transferred. The Block Header is organized as follows: BYTE BYTE WORD BYTE bBlockID; nBlockLen[3]; wPausePeriod; bTimeConstant; // == 3 // 3-byte block length

  • 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-5
Some points to note for Block Type 1:
1.
If this block is preceded by Block Type 8 (discussed later),
the digitized
sound attributes on Block Type 8 should be used.
The digitized sound
attributes in this block should be ignored.
2.
If this block is alone, the digitized sound channels should be defaulted to
mono.
Block Type 2
This is a digitized sound continuation block.
The Block Header is organized as
follows:
BYTE
bBlockID;
// == 2
BYTE
nBlockLen[3];
// 3-byte block length
The header is followed immediately by the digitized sound data.
Here is a discussion of various fields:
bBlockID
The Block Type identifier is 2.
nBlockLen
Length of the block (in bytes), excluding the
bBlockID
and
nBlockLen
fields.
This block type will only be used when the digitized sound data size exceeds the 3-byte
block length (16 megabytes).
Block Type 3
This block specifies the pause period for the digitized sound before next block of
digitized sound data is transferred.
The Block Header is organized as follows:
BYTE
bBlockID;
// == 3
BYTE
nBlockLen[3];
// 3-byte block length
WORD
wPausePeriod;
BYTE
bTimeConstant;