From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Creative Voice File (VOC)" |
|---|
| claim | "The VOC header is 26 bytes, little-endian: "Creative Voice File" plus 0x1A (20 bytes), the offset of the first block (0x001A), the version (0x010A or 0x0114; 0x0100 also occurs) and a check word equal to the 16-bit value (~version + 0x1234). Blocks follow at the stored offset. ScummVM additionally accepts a variant with an 8-byte 'VTLK' prefix (4 bytes of VTLK plus 4 bytes it skips) before this header; that wrapper is not part of the plain VOC format." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Creative Voice File (VOC)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "VocFileHeader" |
|---|
| size | 26 |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 20 |
|---|
| type | "char[20]" |
|---|
| name | "desc" |
|---|
|
| offset | "0x14" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "datablock_offset" |
|---|
|
| offset | "0x16" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "version" |
|---|
|
| offset | "0x18" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "check" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "VocFileHeader {desc[20], datablock_offset, version, id}; first 19 characters compared with Creative Voice File (the 0x1A check is commented out); offset must equal sizeof(header); version in {0x010A, 0x0114, 0x0100}; id must equal ~version + 0x1234." |
|---|
| repo | "scummvm/scummvm" |
|---|
| commit | "3f4203f8833f12615b0df5fa27f19d3c30d3e5d8" |
|---|
| path | "audio/decoders/voc.cpp" |
|---|
| lines | "36-76" |
|---|
|
| type | "source" |
|---|
| detail | "checkVOCHeader reads 8 bytes then branches on memcmp VTLK (reads a full header after it) or Creative" |
|---|
| repo | "scummvm/scummvm" |
|---|
| commit | "3f4203f8833f12615b0df5fa27f19d3c30d3e5d8" |
|---|
| path | "audio/decoders/voc.cpp" |
|---|
| lines | "36-47" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "VOC file header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T04:14:11.965Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:45:25.421Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read audio/decoders/voc.cpp checkVOCHeader: reads 8 bytes, VTLK prefix then a full 26-byte header, or 'Creative' plus the rest; desc compared on 19 chars; offset must equal sizeof(header); version in {0x010A,0x0114,0x0100}; id == ~version+0x1234. Matches claim and data." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T07:11:05.076Z" |
|---|
| summary | "Scope: ScummVM's checkVOCHeader also accepts a file that starts with 'VTLK' plus 4 more bytes before the 26-byte header (it reads 8 bytes, compares VTLK or 'Creative'); added that, the header proper…" |
|---|
| changed | |
|---|
|
|
|---|