File Format
B-11
nBlockLen
Length of the block (in bytes), excluding the bBlockID and nBlockLen
fields.
The value will be the digitized sound data length plus 12.
dwSamplesPerSec
This is the actual sampling frequency, not a Time Constant. There is no
need to double the value when dealing with stereo I/O (unlike in Block
Type 8).
bBitsPerSample
Actual number of bits per sample after compression (if any).
bChannels
This is 1 for mono or 2 for stereo.
wFormat
The currently supported formats are:
Value
Meaning
0x0000
8-bit unsigned PCM
0x0001
Creative 8-bit to 4-bit ADPCM
0x0002
Creative 8-bit to 3-bit ADPCM
0x0003
Creative 8-bit to 2-bit ADPCM
0x0004
16-bit signed PCM
0x0006
CCITT a-Law
0x0007
CCITT
µ
-Law
0x0200
Creative 16-bit to 4-bit ADPCM
Some other points to note:
1.
This is a new Block Type introduced on .VOC file with version number 1.20
and above.
2.
It is intended that this Block Type supersedes Block Types 1 and 8. That is,
the new drivers will produce BlockType 9 blocks on recording.