VAG Audio

From XentaxWiki
Jump to: navigation, search

VAG


Format Specifications (version 2)

// VAG file format

// big endian 

//header
4 bytes (char) - magic // "VAGp"
4 bytes uint32 - format version  // "2"
4 bytes (uint32) - source start offset // always "0"
4 bytes (uint32) - waveform data size 
4 bytes (uint32) - sample rate (Hz)
2 bytes (uint16) - base volume for left channel
2 bytes (uint16) - base volume for right channel
2 bytes (uint16) - base pitch (includes fs modulation)
2 bytes (uint16) - base ADSR1
2 bytes (uint16) - base ADSR2
2 bytes (uint16) - reserved
16 bytes (char) - track name

//data
x bytes - waveform data (ADPCM Audio)

Format Specifications (version 3)

// VAG file format

// big endian 

//header
4 bytes (char) - magic // "VAGp"
4 bytes uint32 - format version  // "3"
4 bytes (uint32) - source start offset // always "0"
4 bytes (uint32) - waveform data size 
4 bytes (uint32) - sample rate (Hz)
10 bytes - reserved area
1 byte (uint8) - number of channels  // "0" or "1" --> 1 channel
                                     // "2" --> 2 channels
1 byte (uint8) - reserved
32 bytes (char) - track name  // e.g. "s11_03/MD"

//data
x bytes - waveform data (ADPCM Audio)

Format Specifications (version 6)

// VAG file format

// big endian 

//header
4 bytes (char) - magic // "VAGp"
4 bytes uint32 - format version  // "6"

//TODO

MultiEx BMS Script

Not written yet.

Notes and Comments

  • This is PlayStation 1 sound file format used in many games.

Games

List of games using this file format:

  • F1 2009 (PSP) (v6) (*.ABC)
  • many more...

Compatible Programs

  • PSXSND
  • strVagEditor
  • vab2vag
  • vag depack
  • vag pack
  • VAGedit
  • vag2wav
  • wav2vag
  • MFAudio
  • RComage
  • PSound