Introduction
A .vag file is a sampled sound in the ADPCM coding of the Sony PlayStation’s sound unit. Games
use it for effects, voices and instrument samples, and the same single-channel layout carried on to later Sony
consoles. Stereo files exist in many different interleaved variants.
Structure
The usual file starts with the ID VAGp, followed by a version, a reserved word, the data size and
the sample rate, mostly big-endian even on little-endian consoles. A 16-byte name sits at offset 0x20 and the
ADPCM blocks usually start at offset 0x30. Other IDs (VAG1, VAG2, VAGi,
pGAV) mark variants. No single field says whether a file is mono or stereo.
Not described
This page is a first outline. The details of the layout are not yet described here.
Known, not yet covered
- Reference: the versions, the variant headers, the interleave rules and the ADPCM block coding, which community documentation and vgmstream describe.
- Viewer: the site has no viewer for this format.
Links
Software
- vgmstream – player plugins and command-line decoder for video game audio, including VAG
Developers
- vgmstream vag.c – the reader for the VAG header and its variants (C)
Reference
- PlayStation specifications: CD-ROM file formats – community notes on the VAG header and its variants