From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:WEM (Wwise RIFF audio)" |
|---|
| claim | "Newer Wwise Vorbis (fmt chunk size 0x42, extra size 0x30): the vorb fields live in the fmt extra data at fmt+0x18: total PCM frames, loop packet offsets, seek table size, Vorbis data offset, max packet size, decode allocation sizes, codebook hash, block-size exponents." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:WEM (Wwise RIFF audio)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "WWISE_VORBIS_FMT_EXTRA" |
|---|
| size | 66 |
|---|
| alignment | 1 |
|---|
| variant | "newer format, version 56+: fmt chunk size 0x42, extra size 0x30 starting at payload offset 0x18" |
|---|
| fields | | name | "dwTotalPCMFrames" |
|---|
| offset | 24 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
|
| name | "loop_start_packet_offset" |
|---|
| offset | 28 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| meaning | "data start, or loop start when smpl chunk exists" |
|---|
|
| name | "loop_end_packet_offset" |
|---|
| offset | 32 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
|
| name | "uLoopBeginExtra" |
|---|
| offset | 36 |
|---|
| size | 2 |
|---|
| type | "uint16" |
|---|
|
| name | "uLoopEndExtra" |
|---|
| offset | 38 |
|---|
| size | 2 |
|---|
| type | "uint16" |
|---|
|
| name | "dwSeekTableSize" |
|---|
| offset | 40 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| meaning | "0 = no seek table" |
|---|
|
| name | "dwVorbisDataOffset" |
|---|
| offset | 44 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| meaning | "offset within data" |
|---|
|
| name | "uMaxPacketSize" |
|---|
| offset | 48 |
|---|
| size | 2 |
|---|
| type | "uint16" |
|---|
|
| name | "uLastGranuleExtra" |
|---|
| offset | 50 |
|---|
| size | 2 |
|---|
| type | "uint16" |
|---|
|
| name | "dwDecodeAllocSize" |
|---|
| offset | 52 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
|
| name | "dwDecodeX64AllocSize" |
|---|
| offset | 56 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
|
| name | "uHashCodebook" |
|---|
| offset | 60 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| meaning | "hash of the codebook set, guessed name" |
|---|
|
| name | "blocksize_small_exp" |
|---|
| offset | 64 |
|---|
| size | 1 |
|---|
| type | "uint8" |
|---|
|
| name | "blocksize_large_exp" |
|---|
| offset | 65 |
|---|
| size | 1 |
|---|
| type | "uint8" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "VORBIS FORMAT RESEARCH comment, new format: fmt size 0x42, extra size 0x30" |
|---|
| repo | "https://github.com/vgmstream/vgmstream" |
|---|
| commit | "db77f98f405a45ad08df98aa444cae3848f95e6c" |
|---|
| path | "src/meta/wwise.c" |
|---|
| lines | "1085-1097" |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "Wwise Vorbis fmt extra data" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T09:14:46.412Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-18T20:32:48.923Z" |
|---|
| result | "partial" |
|---|
| method | "Read vgmstream src/meta/wwise.c lines 1050-1098 at db77f98f ('VORBIS FORMAT RESEARCH' comment, new format fmt size 0x42, extra size 0x30). Offsets 0x18 frames, 0x1C loop start, 0x20 loop end, 0x24 uLoopBeginExtra (2), 0x26 uLoopEndExtra (2), 0x28 seek table size, 0x2C data offset, 0x30 max packet (2), 0x32 last granule extra (2), 0x34 and 0x38 alloc sizes, 0x40/0x41 block size exponents all match the wiki's decimal offsets 24..65." |
|---|
| notes | "The comment lists no field at 0x3C; uHashCodebook at 60 is an inference from the 4-byte gap and the older layouts, where the hash comes right after the alloc sizes. The loop-extra names carry question marks in the older layouts. Real files not checked." |
|---|
|
|
|---|