nolibgs_hello_worlds/VAG
2021-07-20 18:44:27 +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 Add some infos about VAG file format 2021-07-20 18:44:27 +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

WAV creation

Use ffmpeg to create a 16-bit ADPCM mono WAV file - change -ar to reduce filesize (and quality)

$ ffmpeg -i input.mp3 -acodec pcm_s16le -ac 1 -ar 44100 output.wav

You can use Audacity to edit sound.

WAV to VAG convertion using WAV2VAG

Get here : WAV2VAG

Change -freq according to the -ar setting above

$ wav2vag input.wav output.vag -sraw16 -freq=44100 (-L) 

Bug ?

After conversion with WAV2VAG, the resulting VAG will sometimes have a pop at the very beginning and/or end of the file.

You can check (and delete) this with PsyQ's VAGEDIT.EXE.

You can also force the sampling frequency of an existing VAG file.

VAGedit

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

VAG & SPU Docs

See