Format:AFS2 (AWB)
| Developer | CRI Middleware |
|---|---|
| Magic | AFS2 (41 46 53 32) |
| Extensions | .awb, .afs2, .awx |
| Endianness | little |
| License | proprietary; reader: vgmstream |
| On this wiki | Facts · Code · Notes · Topics |
CRI ADX2's waveform archive (.awb, magic AFS2): a small header, a table of wave ids, a table of aligned offsets (last entry = file end) and then the audio files (HCA, ADX, VAG, CWAV, Opus...); the matching .acb @UTF table names them.
Layout
All little-endian. 0x00 AFS2; 0x04 u8 version (1 common, 2 from 2018), 0x05 u8 size of an offset entry (4 common, 2 for some small sfx banks), 0x06 u16 wave id size (usually 2, rarely 4); 0x08 s32 number of files; 0x0C u16 offset alignment (always seen 0x20); 0x0E u16 subkey (used with encrypted HCA/ADX); 0x10 then the wave ids (count entries), then count+1 offsets. Each offset is absolute and must be rounded up to the alignment; the size of file n is offset(n+1) - offset(n). See Fact:AFS2 (AWB)/struct/AFS2 header.
Content type is found from the first bytes of each file: 80 00 ADX, HCA\0 (masked with 7F7F7F7F if encrypted), VAGp, RIFF, CWAV, CWAC. The names and cue structure are in the paired .acb (an Format:CRI UTF table; the waveform can also be embedded in the ACB).
Related
Library:CRIWARE, Format:HCA, Format:ADX, Format:CRI CPK.
Evidence & references
- vgmstream commit db77f98f405a45ad08df98aa444cae3848f95e6c (ISC):
src/meta/awb.clines 28-130 and 195-265.