Can anyone help me to decode VGZ file to create a Java player?

Talk about anything and everything about Sega's 16 Bit console and its addons here - hardware, games, memories. You name it.
Post Reply
Mordan
New Around Here
Posts: 2
Joined: Tue Jun 30, 2009 7:27 pm

Can anyone help me to decode VGZ file to create a Java player?

Post by Mordan »

Hello,

I have Java programming skills. I do a lot of J2ME work. I'm working on a wav sound mixer for a game engine. Being an avid fan of the Megadrive, I thought wouldn't it be cool to play vgz files on your mobile phone? :) :)

I would just need the specification to decode vgz files and transform it in wav format. I would do that on the fly and feed the J2ME Sound Player with raw WAV byte data.
SmartOne
Posts: 196
Joined: Fri Jul 20, 2007 2:33 pm
Location: Your mom. HA!

Post by SmartOne »

The best open source YM2612 emulator:

http://code.google.com/p/genplus-gx/
Mordan
New Around Here
Posts: 2
Joined: Tue Jun 30, 2009 7:27 pm

Post by Mordan »

thx for the reply.

Should I really need to sort out the code of YM2612 in order to decode a vgz file? Wav file format for example tells me about headers "RIFF" "FMT" "DATA". If i understood correctly, vgz files stores YM2612 sound commands and the Winamp plug in transforms those commands in winamp readable sound data.

I got the source from SVN and after browing quickly a few files, I'm still wondering how it is going to help me decode vgz files that we download from this site!

How are sound instructions stored in vgz files?

Image
SmartOne
Posts: 196
Joined: Fri Jul 20, 2007 2:33 pm
Location: Your mom. HA!

Post by SmartOne »

Sorry, I couldn't find the format specification before, but here it is:

http://www.smspower.org/music/Help/VGMFileFormat

VGM contains instructions for the sound chips. You'll need to emulate the chips to transform the instructions into audio data. That's the extent of my knowledge, unfortunately.
Post Reply