From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Wwise SoundBank (BNK)" |
|---|
| claim | "Each DIDX entry is 12 bytes: wem id, offset into the DATA chunk payload, size; entry count is the DIDX chunk size divided by 12. Fields use the bank's byte order." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Wwise banks with bank version above 26" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "AkMediaIndexEntry" |
|---|
| size | "0xC" |
|---|
| endianness | "bank byte order (guessed from the first chunk size)" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "media_id" |
|---|
| notes | "id of the embedded .wem" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "offset" |
|---|
| notes | "relative to the start of the DATA chunk payload" |
|---|
|
| offset | "0x8" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "size" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "entries counted as didx_size / 0x0c; subsong N read at didx_offset + (N-1)*0x0c with id, offset + data_offset, size" |
|---|
| repo | "https://github.com/vgmstream/vgmstream" |
|---|
| commit | "db77f98f405a45ad08df98aa444cae3848f95e6c" |
|---|
| path | "src/meta/bkhd.c" |
|---|
| lines | "83-124" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "DIDX media index entry" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T09:10:48.002Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:59:08.035Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read vgmstream bkhd.c (28-125) at the cited commit: for bank version > 26 the DIDX and DATA chunks are walked with next_chunk (bank byte order guessed from the first chunk size), total_subsongs = didx_size / 0x0c, entry N at didx_offset + (N-1)*0x0c with id@0, offset@4 (+ DATA payload offset), size@8." |
|---|
|
|
|---|