If anyone has played the m92 games in fba, you've noticed the music craps out after a while.
based on this change in the next mame release
http://git.redump.net/mame/commit/?id=4752ec48a890db3219bb6919fa0918826b3dc4a4This can be fixed by changing this in d_m92.cpp
case 0xa8044:
return sound_latch[0];
to this
case 0xa8044:
setvector_callback(V30_CLEAR);
return sound_latch[0];
You can fix the tempo (i'm fairly deaf, so it could still be off...) with this:
find this line:
if (i==127)sync_ym2151();
change it to
if ((i & 63) == 63) sync_ym2151(); // update 4x/frame
Also, you can fix music for m90 with this too.
in d_m90.cpp find this
case 0x42: // bbmanw
case 0x80:
return *soundlatch;
change it to
case 0x42: // bbmanw
case 0x80:
ZetSetVector(0xff);
ZetSetIRQLine(0, ZET_IRQSTATUS_NONE);//?
return *soundlatch;