OBD:SNDD/wav
< OBD:SNDD
Jump to navigation
Jump to search
Oni PC sound data uses an ADPCMWAVEFORMAT header.
Offset | Type | Raw Hex | Value | Description |
---|---|---|---|---|
0x0C | int16 | 02 00 | 2 | format ID (2 = ADPCM format) |
0x0E | int16 | 01 00 | 1 | number of channels (1 = mono) |
0x10 | int32 | 22 56 00 00 | 22050 | samples per seconds; (also known as "frequency" or "sample rate") |
0x14 | int32 | 93 2B 00 00 | 11155 | File:Sndd hd1.gif |
0x18 | int16 | 00 02 | 512 | block alignment; used for buffer estimation; (the block alignment of 22050 samples per second is
always 512 bytes) |
0x1A | int16 | 04 00 | 4 | bits per sample |
Special extended ADPCM wav format header (black outline) | ||||
0x1C | int16 | 20 00 | 32 | size of the following extended information part in bytes |
0x1E | int16 | F4 03 | 1012 | File:Sndd hd2.gif |
0x20 | int16 | 07 00 | 7 | number of the following coefficient sets |
0x22 | int16-16 | 00 01 00 00 | 256, 0 |
The 14 coefficients are standard and are used by the wave to play. The seven coefficient sets are preset. They must appear in this order. |
0x26 | int16-16 | 00 02 00 FF | 512, -256 | |
0x2A | int16-16 | 00 00 00 00 | 0, 0 | |
0x2E | int16-16 | C0 00 40 00 | 192, 64 | |
0x32 | int16-16 | F0 00 00 00 | 240, 0 | |
0x36 | int16-16 | CC 01 30 FF | 460, -208 | |
0x3A | int16-16 | 88 01 18 FF | 392, -232 |
- 22.05 kHz mono
- sample rate 22.05 kHz
- average rate 11155
- block alignment 512
- 1012 samples per block
0x00: | °° | °° | °° | °° | °° | °° | °° | °° | 08 | 00 | 00 | 00 | 02 | 00 | 01 | 00 | °°°°°°°°°°°°°°°° |
0x10: | 22 | 56 | 00 | 00 | 93 | 2B | 00 | 00 | 00 | 02 | 04 | 00 | 20 | 00 | F4 | 03 | °°°°°°°°°°°°°°°° |
0x20: | 07 | 00 | 00 | 01 | 00 | 00 | 00 | 02 | 00 | FF | 00 | 00 | 00 | 00 | C0 | 00 | °°°°°°°°°°°°°°°° |
0x30: | 40 | 00 | F0 | 00 | 00 | 00 | CC | 01 | 30 | FF | 88 | 01 | 18 | FF | 00 | °° | °°°°°°°°°°°°°°°° |
- 44 kHz mono
- sample rate 44.1 kHz
- average rate 22179
- block alignment 1024
- 2036 samples per block
0x00: | °° | °° | °° | °° | °° | °° | °° | °° | 08 | 00 | 00 | 00 | 02 | 00 | 01 | 00 | °°°°°°°°°°°°°°°° |
0x10: | 22 | 56 | 00 | 00 | 93 | 2B | 00 | 00 | 00 | 02 | 04 | 00 | 20 | 00 | F4 | 03 | °°°°°°°°°°°°°°°° |
0x20: | 07 | 00 | 00 | 01 | 00 | 00 | 00 | 02 | 00 | FF | 00 | 00 | 00 | 00 | C0 | 00 | °°°°°°°°°°°°°°°° |
0x30: | 40 | 00 | F0 | 00 | 00 | 00 | CC | 01 | 30 | FF | 88 | 01 | 18 | FF | 00 | °° | °°°°°°°°°°°°°°°° |
- 22.05 kHz stereo
- sample rate 22.05 kHz
- average rate 22311
- block alignment 1024
- 1012 samples per block
0x00: | °° | °° | °° | °° | °° | °° | °° | °° | 08 | 00 | 00 | 00 | 02 | 00 | 01 | 00 | °°°°°°°°°°°°°°°° |
0x10: | 22 | 56 | 00 | 00 | 93 | 2B | 00 | 00 | 00 | 02 | 04 | 00 | 20 | 00 | F4 | 03 | °°°°°°°°°°°°°°°° |
0x20: | 07 | 00 | 00 | 01 | 00 | 00 | 00 | 02 | 00 | FF | 00 | 00 | 00 | 00 | C0 | 00 | °°°°°°°°°°°°°°°° |
0x30: | 40 | 00 | F0 | 00 | 00 | 00 | CC | 01 | 30 | FF | 88 | 01 | 18 | FF | 00 | °° | °°°°°°°°°°°°°°°° |