nolibgs_hello_worlds/VAG
2021-08-14 11:46:28 +02:00
..
hello_poly.vag add world, poly, vag 2020-12-22 11:52:22 +01:00
hello.vag add VAGs and VAG Readme 2020-12-22 12:38:06 +01:00
poly.vag add VAGs and VAG Readme 2020-12-22 12:38:06 +01:00
README.md Generate clean VAG file 2021-08-14 11:46:28 +02:00

VAG files

VAG is the PlayStation single waveform data format for ADPCM-encoded data of sampled sounds, such as piano sounds, explosions, and music. The typical extension in DOS is “.VAG”.

See FileFormat47.pdf, p.209

Audio to VAG conversion

We have to convert the audio file to RAW data first :

ffmpeg -i input.mp3 -f s16le -ac 1 -ar 44100 tmp.dat

then use wav2vag to convert the data, making sure the -freq= parameter matches the -ar value used above :

wav2vag tmp.dat output.vag -sraw16 -freq=44100

VAGedit

You can find a graphical editor in the PsyQ sdk named VAGEDIT.exe.

VAG & SPU Docs

See

Ressources