ADXlossy compressed audio file
application/octet-stream
Magic Bytes
Offset: 0
03 00 00 00 41 50 50 52
ADX is a proprietary lossy compressed audio format developed and maintained by CRI Middleware for the interactive entertainment industry. This format is primarily used to store background music and voiceovers in video games, optimized for efficient streaming and seamless looping on hardware with limited resources. Although considered a legacy standard from the Sega Dreamcast and PlayStation 2 eras, the format remains purely an audio container and presents no inherent security risks.
Validation Code
How to validate .adx files in Python
Python
def is_adx(file_path: str) -> bool:
"""Check if file is a valid ADX by magic bytes."""
signature = bytes([0x03, 0x00, 0x00, 0x00, 0x41, 0x50, 0x50, 0x52])
with open(file_path, "rb") as f:
return f.read(8) == signature
How to validate .adx files in Node.js
Node.js
function isADX(buffer: Buffer): boolean {
const signature = Buffer.from([0x03, 0x00, 0x00, 0x00, 0x41, 0x50, 0x50, 0x52]);
return buffer.subarray(0, 8).equals(signature);
}
Go
func IsADX(data []byte) bool {
signature := []byte{0x03, 0x00, 0x00, 0x00, 0x41, 0x50, 0x50, 0x52}
if len(data) < 8 {
return false
}
return bytes.Equal(data[:8], signature)
}
API Endpoint
GET
/api/v1/adx
curl https://filesignature.org/api/v1/adx