From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:AFS2 (AWB)" |
|---|
| claim | "AFS2 header (little-endian): magic, version, offset entry size, wave id size, file count, offset alignment, subkey; then count wave ids and count+1 offsets (the last is the file end), offsets rounded up to the alignment." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:AFS2 (AWB)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "AFS2_HEADER" |
|---|
| size | 16 |
|---|
| alignment | 4 |
|---|
| fields | | name | "magic" |
|---|
| offset | 0 |
|---|
| size | 4 |
|---|
| type | "char[4]" |
|---|
| meaning | "AFS2" |
|---|
|
| name | "version" |
|---|
| offset | 4 |
|---|
| size | 1 |
|---|
| type | "uint8" |
|---|
| meaning | "1 common, 2 since 2018" |
|---|
|
| name | "offset_size" |
|---|
| offset | 5 |
|---|
| size | 1 |
|---|
| type | "uint8" |
|---|
| meaning | "4 or 2" |
|---|
|
| name | "waveid_size" |
|---|
| offset | 6 |
|---|
| size | 2 |
|---|
| type | "uint16" |
|---|
| meaning | "usually 2" |
|---|
|
| name | "file_count" |
|---|
| offset | 8 |
|---|
| size | 4 |
|---|
| type | "int32" |
|---|
|
| name | "alignment" |
|---|
| offset | 12 |
|---|
| size | 2 |
|---|
| type | "uint16" |
|---|
| meaning | "0x20" |
|---|
|
| name | "subkey" |
|---|
| offset | 14 |
|---|
| size | 2 |
|---|
| type | "uint16" |
|---|
| meaning | "for encrypted HCA/ADX" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "header fields, id table, offset table" |
|---|
| repo | "https://github.com/vgmstream/vgmstream" |
|---|
| commit | "db77f98f405a45ad08df98aa444cae3848f95e6c" |
|---|
| path | "src/meta/awb.c" |
|---|
| lines | "32-100" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "AFS2 header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T09:14:46.733Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:21:09.253Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched src/meta/awb.c at the cited commit; reads at 0x04 version (comment 1 common, 2 2018+), 0x05 offset_size (4 or 2), 0x06 u16, 0x08 s32 count, 0x0c u16 alignment, 0x0e u16 subkey, tables start at 0x10 with count+1 offsets. The u16 at 6 is called waveid_alignment in the source (id entry size); other offset sizes are rejected." |
|---|
|
|
|---|