Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Format:ADX

From ReverseEngineering.wiki
Format
Developer CRI Middleware
Magic 80 00
Extensions .adx, .adp, .sfa
Endianness big
License proprietary; readers: vgmstream (ISC)
On this wiki Facts · Code · Notes · Topics

CRI's 4-bit ADPCM audio (.adx): big-endian header starting 80 00, a (c)CRI signature just before the data, frame size 18 bytes (16 for 4 bits) per channel, versions 0x0300 to 0x0400 (0x0408/0x0409 encrypted).

Layout

Big-endian header: 0x00 80 00; 0x02 u16 copyright offset (data start = value + 4; the six bytes (c)CRI sit at data start minus 6); 0x04 u8 encoding (2 fixed coefficients, 3 standard, 4 exponential scale; 0x10/0x11 are AHX = MPEG audio); 0x05 u8 frame size (always 0x12); 0x06 u8 bits per sample (4); 0x07 u8 channels (up to 2 in old encoders, 8 in newer); 0x08 s32 sample rate; 0x0C s32 sample count; 0x10 u16 high-pass cutoff (always 500); 0x12 u16 version (0x0300 early 1998 Saturn titles, 0x0400 common, 0x0408 and 0x0409 encrypted). Version 0x0400 then has history samples, loop info (enable flag, start sample/offset, end sample/offset) and an optional AINF block. See Fact:ADX/struct/ADX header.

Encryption (0x0408 / 0x0409) XORs the prediction scales with a per-game linear congruential key; keys are game data and not listed here.

Related

Library:CRIWARE, Format:AFS2 (AWB), Format:HCA.

Evidence & references

  • vgmstream commit db77f98f405a45ad08df98aa444cae3848f95e6c (ISC): src/meta/adx.c lines 17-185.