Skip to content

MAME/MESS VGM mod

Current version: 0.256 (released on 2023-06-28)

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

Moderator: Staff

Post by Sonic of 8! »

This can be occur with some sound engines, because I logged some Cratermaze and Power Leagu VGMs and the tempo is the same of the game.
オモいカルチャーをオモチャーと言う - 細野晴臣

Post by Kaminari »

Out of curiosity -- is HuC6280 audio emu in Mame/Mess based on Blargg's GME library, or is it an original development? It sounds decent, but not as good as Ootake or NEZplug++.
  • User avatar
  • ValleyBell Offline
  • Posts: 4768
  • Joined: 2011-12-01, 20:20:07
  • Location: Germany

Post by ValleyBell »

According to the comments in the code it's from TGEmu.
I don't know where blargg's emu comes from, because most of the files lack comments. Did he write it himself?

And MAME/MESS sound emulators don't sound perfect quite often. I worked a lot on the GB core to make it sound better. (That doesn't mean that I won't port sound emus from elsewhere. ;) )

Post by Sonic of 8! »

Hmmm.... Now I discovered the reason that the core is not 100% accurate also that is written on MESS... I'll wait a VB's Commandline Tools update for new VGM chips like Hu PSG and the two Konami chips for making a VGM Pack with these chips.
オモいカルチャーをオモチャーと言う - 細野晴臣
  • User avatar
  • 2ch-H Offline
  • Posts: 280
  • Joined: 2012-01-03, 2:10:28

Post by 2ch-H »

Is it possible to support the VGM output in mednafen or ootake?
mednafen or ootake can make right VGM

Because PC-FX works when it is mednafen, I may make VGM of PC-FX
The sound chip of PC-FX added ADPCM to HuC6280 in HuC6230
Will it be possible?

Post by Sonic of 8! »

ValleyBell uses MAME/MESS sound cores. PC-FX driver emulation is very premilinary, and the sound isn't supported. Importing a sound core from another emulator can be difficult...
オモいカルチャーをオモチャーと言う - 細野晴臣
  • User avatar
  • ValleyBell Offline
  • Posts: 4768
  • Joined: 2011-12-01, 20:20:07
  • Location: Germany

Post by ValleyBell »

Of course it is possible.
But I'll first focus on finishing in_vgm and the vgm tools.
  • User avatar
  • 2ch-H Offline
  • Posts: 280
  • Joined: 2012-01-03, 2:10:28

Post by 2ch-H »

I wait until it is over.

Thank you.
  • User avatar
  • ValleyBell Offline
  • Posts: 4768
  • Joined: 2011-12-01, 20:20:07
  • Location: Germany

Post by ValleyBell »

Can anyone of you describe please, how to reproduce the bug where MAME logs GB DMG instead of AY8910?

Please make a step-by-step guide and say, if you're using the 32-bit or the 64-bit version.
And please post the error.log file. Just in case it says anything useful.

Thanks.

Post by Sonic of 8! »

I use 32-bit build, and this don't occur with AY only. OKI6258 appears instead of uPD7759. MultiPCM appears instead of NES APU, etc. Maybe a compiling error?
オモいカルチャーをオモチャーと言う - 細野晴臣
  • User avatar
  • ValleyBell Offline
  • Posts: 4768
  • Joined: 2011-12-01, 20:20:07
  • Location: Germany

Post by ValleyBell »

Hmm ... you're right. Thanks for the info.
It worked on the first try when trying the 32-bit version.
It does not happen with MESS 32- and 64-bit and MAME 64-bit, btw.


I just remembered that I changed some of the internal IDs and this change would have exactly this effect if it didn't recompile all the necessary files.
So it's a compiling error - good to know. I cleared the cache, so it will be fixed with the next update.
  • User avatar
  • 2ch-H Offline
  • Posts: 280
  • Joined: 2012-01-03, 2:10:28

Post by 2ch-H »

I use 32-bit.The game using other AY8910 for is output in GB DMG.

error.log file did not output it.
  • User avatar
  • 2ch-H Offline
  • Posts: 280
  • Joined: 2012-01-03, 2:10:28

Post by 2ch-H »

Problem with Power Instinct.
Probably OKIM6295 2nd chip does not output vgmlog normally.
I use MAME 0.144 32-bit Version.

example:
Edit: link was removed.

Power Instinct:
powerins_op.vgm is output log
powerins_op.wav.mp3 is Right sound

Power Instinct 2:
pwrinst2_op.vgm is output log
pwrinst2_op.wav.mp3 is Right sound

Power Instinct Legend:
plegends_op.vgm is output log
plegends_op.wav.mp3 is Right sound

Will it be correctable?
Last edited by 2ch-H on 2012-05-13, 18:00:42, edited 1 time in total.
  • User avatar
  • ValleyBell Offline
  • Posts: 4768
  • Joined: 2011-12-01, 20:20:07
  • Location: Germany

Post by ValleyBell »

Sorry, but they use a custom chip to switch between various sample sets.
In order to fix that problem, I'll need to log and simulate that chip somehow and that's going to be quite some work.

That means I won't have a solution for this in near future.

Post by Sonic of 8! »

I don't know if is the problem, but VGM logged files from Super World Court don't appear. SWC uses the C140 in-RAM dynamic memory and because of this is not logged?
Post Reply