From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:PIG (Descent)" |
|---|
| claim | "A Descent sound header in the Descent 1 PIG (and in the Descent 2 sound files and old HAMs) is 20 bytes: name[8], uint32 length, uint32 data_length (Rebirth keeps it, as the compressed size, only for the PC shareware PIG), uint32 offset relative to the end of the sound header table." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Descent 1 PIG after the bitmap headers; Descent 2 .s11/.s22 files and pre-version-3 HAMs (static_assert sizeof == 20)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "DiskSoundHeader" |
|---|
| size | 20 |
|---|
| endianness | "little" |
|---|
| fields | | offset | 0 |
|---|
| size | 8 |
|---|
| type | "char[8]" |
|---|
| name | "name" |
|---|
|
| offset | 8 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "length" |
|---|
|
| offset | 12 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "data_length" |
|---|
|
| offset | 16 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "offset" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct with static_assert(sizeof == 8+4+4+4); read with GET_INTEL_INT; D1 data position = offset + header_size + 8 + Pigdata_start; D2 build_sound_allocation adds the position after the sound header table" |
|---|
| repo | "https://github.com/dxx-rebirth/dxx-rebirth" |
|---|
| commit | "6943b924bea749543ef5729f31a28345e79716d2" |
|---|
| path | "similar/main/piggy.cpp" |
|---|
| lines | "212-219, 293-306, 361-390, 693-705" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "DiskSoundHeader (20 bytes)" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T09:35:45.526Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:56:53.866Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read piggy.cpp 212-219 and 293-306: name[8], length, data_length, offset, static_assert 20; read with GET_INTEL_INT at 8,12,16; D1 sound offset adjusted by header_size + 8 + Pigdata_start at 693-705." |
|---|
|
|
|---|