psx.wiki

VAG (PS Single Waveform Data)

ADPCM waveform data of one sampled sound.

VAG (PS Single Waveform Data)
Extension.VAG
IDVAGp

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

Table 1: VAG format
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


  1. ^ a b Sony Computer Entertainment Inc. File Formats. November 1998. Page 4-5, Figure 201.

Categories: File formats