From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:XACT wave bank and sound bank (XWB, XSB)" |
|---|
| claim | "An XACT sound bank starts with SDBK (little-endian) or KBDS (big-endian) followed by a u16 tool version at 4, and vgmstream branches on that version: up to 5 (XACT 1.0) complex cues count at 0x1A and simple at 0x1C; 6-11 (XACT 1.1/1.2) complex at 0x1C and simple at 0x1E; 12-41 (XACT 2.x, newest handled is 41) simple cues count u16 at 0x09 and complex at 0x0B (platform byte at 8, wave banks count at 0x15 up to version 28 and at 0x11 for 29-41); above 41 the header adds a format version at 6, CRC16 at 8, two timestamp words, a platform byte at 0x12 and cue counts at 0x13 and 0x15." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:XACT wave bank and sound bank (XWB, XSB)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "53 44 42 4B" |
|---|
| offset | 0 |
|---|
| meaning | "SDBK = XACT sound bank, little-endian (Xbox, PC); KBDS (4B 42 44 53) = big-endian (Xbox 360)" |
|---|
| alternatives | |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Read: magic check, version-branch header offsets (simple_cues_count, complex_cues_count, wavebanks_count, cue_names_offset, wavebanks_offset...) and XSB version limits (XACT1.0 <=5, 1.1 <=8, 1.2 <=11, 2.3 <=28, 2.4 <=34, 2.6 <=41)." |
|---|
| repo | "https://github.com/vgmstream/vgmstream" |
|---|
| commit | "db77f98f405a45ad08df98aa444cae3848f95e6c" |
|---|
| path | "src/meta/xwb_xsb.h" |
|---|
| lines | "7-16, 727-877" |
|---|
|
| type | "source" |
|---|
| detail | "Re-read: is_id32be(0x00, sf, "SDBK") // LE, is_id32be(0x00, sf, "KBDS") // BE, big_endian set from KBDS" |
|---|
| repo | "https://github.com/vgmstream/vgmstream" |
|---|
| commit | "db77f98f405a45ad08df98aa444cae3848f95e6c" |
|---|
| path | "src/meta/xwb_xsb.h" |
|---|
| lines | "727-731" |
|---|
|
| type | "source" |
|---|
| detail | "Read every version branch of parse_xsb: <=5 counts at 0x1A/0x1C, <=8 and <=11 at 0x1C/0x1E, <=28 simple 0x09 complex 0x0B wavebanks 0x15, <=41 same counts wavebanks 0x11, else format version at 06, platform 0x12, counts 0x13/0x15; 2.0-2.2 branches are commented out" |
|---|
| repo | "https://github.com/vgmstream/vgmstream" |
|---|
| commit | "db77f98f405a45ad08df98aa444cae3848f95e6c" |
|---|
| path | "src/meta/xwb_xsb.h" |
|---|
| lines | "7-16, 736-877" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "XSB header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T22:09:42.012Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T06:46:15.480Z" |
|---|
| summary | "Add the big-endian magic KBDS to data.alternatives (source tests both with is_id32be at 727-731)." |
|---|
| changed | |
|---|
|
| by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:41:44.317Z" |
|---|
| summary | "Claim said the 0x09/0x0B cue counts apply 'from version 28 up'; vgmstream xwb_xsb.h 736-877 shows versions 12-41 use them (the 2.0-2.2 branches are commented out), versions up to 11 use 0x1A/0x1C or…" |
|---|
| changed | | "claim" |
| "evidence" |
| "confidence" |
|
|---|
|
|
|---|