Skip to content

Playstation support & sample data

Technical discussion about the VGM format, and all the software you need to handle VGM files.

Moderator: Staff

  • User avatar
  • niekniek Offline
  • Posts: 87
  • Joined: 2017-07-17, 23:28:35

Playstation support & sample data

Post by niekniek »

My new collaboration with AI was pretty succesful; I now have a version with Playstation SPU support! It's about 100kB extra in libvgm, based on SexyPSF. I'm not sure at all if that is the best engine, but the things I tried sound perfect afaik. :D I also have tooling to extract the files from psf packs. You can see it in action overhere: https://niekvlessert.github.io/vgmplay-js-2/, Final Fantasy 7 and Chrono Cross. (I'll fix the Final Fantasy logo...).

That brings me to my next question. I'm aware the VGM format specifies that a file should have all required data for a music track in a file. This means every vgm file contains at least the samples needed for that track or the whole samplepack, depending on the optimisations done on the VGM creation. I'm aware this is just a part of the VGM size; register writes can take up more space then the samples, which is the case for Playstation (at least on the current status overhere) but that can mean a lot of redundant sample data.

Wouldn't it be cool if the sample data could be seperated in a single file? I already did a POC overhere; my spc2vgm converted Plok.zip went from 2.1MB to 1.5MB. It would break players obviously, but the new vgm format files can respond as if those file are a seperate audio chip type, so the player won't start to play and won't break. Or some other clever trick one the VGM gurus comes up with.

And to take it a step further; then libvgm can support more soundchips, basically any chip that did sequenced audio, in an elegant way! For example the PSF format is nice and all, but the situation for the playing is not that great, not a lot of players have support. There's no vibrant community like overhere behind the format which takes it very serious to get the correct pack on a site either. So wouldn't it be amazing if we could see all PSX, Saturn and what not chips on this site? I think I can do Saturn like I did with Playstation. And SNES probably.