VAG (PS Single Waveform Data)
ADPCM waveform data of one sampled sound.
| Extension | .VAG |
|---|---|
| ID | VAGp |
Overview
VAG is the PlayStation single waveform data format. It holds ADPCM-encoded data of a sampled sound such as a piano note, an explosion or music, and its typical extension in DOS is ".VAG". Several VAG files are managed as one group in a VAB file.1
Structure
A VAG file has a 48-byte header (4 + 4 + 4 + 4 + 4 + 12 + 16 bytes) followed by the waveform data. The header gives the data size in bytes and the sampling frequency and also holds a 16-byte name. The fields and their byte counts are shown below.1
| Field | Byte count |
|---|---|
| ID (VAGp) | 4 |
| Version | 4 |
| Reserved | 4 |
| Data size (Bytes) | 4 |
| Sampling frequency | 4 |
| Reserved | 12 |
| Name | 16 |
| Waveform data | Any |
References
Categories: File formats