From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:WEM (Wwise RIFF audio)" |
|---|
| claim | "In the newest Wwise Vorbis wems (vorb size 0x2A or fmt-embedded) ww2ogg treats the u32 at vorb+0x04 as a mod-packet signal: the values 0x4A, 0x4B, 0x69 and 0x70 mean standard Vorbis packets, any other value (0xD9, 0xCB, 0xBC, 0xB2 were seen) means modified packets, whose first byte lacks the packet-type bit and the window-shape bits that have to be rebuilt from the mode number and the blockflag of the next packet. A caller-supplied force packet format option (force no-mod / force mod) overrides this result, and for other vorb sizes mod packets are only used when forced." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Wwise Vorbis wem files with vorb size 0x2A or without a vorb chunk" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "opening a wem whose vorb is 0x2A or absent" |
|---|
| effect | "_mod_packets set unless the signal is one of 0x4A, 0x4B, 0x69, 0x70; rebuilt first byte = 1 bit packet type 0, mode number, remainder; long-window packets peek at the next packet's mode_blockflag" |
|---|
| condition | "mod packets always go with 6-byte packet headers per a source comment, though the code path for them is reached with the 2-byte form too (unresolved); the signal is read only for vorb size 0x2A or no vorb chunk, and a force-packet-format argument overrides it" |
|---|
| function | "Wwise_RIFF_Vorbis constructor and generate_ogg" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "signal table in a comment (set: D9 CB BC B2; unset: 4A 4B 69 70; A7 marked with three exclamation marks) and the test on mod_signal; mode rewrite in the audio loop" |
|---|
| repo | "https://github.com/hcs64/ww2ogg" |
|---|
| commit | "14ed9b0dd62e815a38702b5f03c57006cbe2501b" |
|---|
| path | "src/wwriff.cpp" |
|---|
| lines | "344-376, 1076-1135" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Modified packets signal" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T09:12:01.783Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:48:56.250Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read ww2ogg wwriff.cpp at 14ed9b0 lines 325-390 and 1076-1135: signal read at vorb+4 only for vorb size -1/0x2A, mod set unless 4A/4B/69/70, force_packet_format overrides, first-byte rebuild with long-window peek at next packet." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T09:34:04.041Z" |
|---|
| summary | "Branch left out: after the signal test the Wwise_RIFF_Vorbis constructor applies force_packet_format (kForceNoModPackets sets _mod_packets false, kForceModPackets true), so the result can be…" |
|---|
| changed | |
|---|
|
|
|---|