First of all, thankyou for fixing the extra drums on 0.193 for midtunit.cpp. Now the only imperfection remaining in the game sound is the tempo of the music. It sounds like the music is slower in mame then the arcade. I have included an mp3 of the one of the intro tracks.

There is also a youtube video which has same music running on arcade PCB but the video host is talking. You can definitely see the music speed is right speed there.

&feature=youtu.be&t=91

Steps To Reproduce

you can hear it in the player intro or at the character screen. But this affects all music of the game.

I took a look at this and the tempo is slower on mame. It could be a clock speed Yamaha YM2151 ADPCM sound board issue. I will take a look at the sound driver.
This could affect other games like NBA Jam, Total Carnage, and T2 as well.

No.16074

Chamajid

Tester

27 days ago

Can you please tell me which file you will be looking at from the source? I tried to search but having no clue of how MAME works I couldnt guess. This will be educational.

There are multiple files for the game driver
src/mame/drivers/midtunit.c - main game driver MK, T2, NBA JAM etc.
There are references to the video and machine folders as well depends on the game.

src/mame/audio/williams.c - Most likely it would be here. This game uses a Yamaha YM2151 for FM, a DAC Chip, and OKI 6295 for ADPCM speech

Now is this an easy fix? No. This hardware is quite complicated. I have consulted with someone I know from the VGM music forums
that is an expert with sound drivers. The fix is either something with the timers, interrupts or the way the main pcb and the sound board updates for the emulation. Definitely a timing problem somewhere to make the sound tempo slower than the real machine but the pitch is correct.

.c file is source file
.h is header

No.16078

Chamajid

Tester

26 days ago

Thanks vidpro1. I tried overclocking the adpcm sound cpu to 104% and it looks like that fixes it. Is there a way to save the overclock setting?

No.16080

kirishima

Tester

26 days ago

Hmmm. I always thought it was slower by design. I could've sworn the music speed up as the match went on similar to how the music behaves in the Megadrive version of Super Street Fighter 2 or the game and watch gallery series. Here's another pcb video for checking:

No.16082

vidpro1

Developer

26 days ago

edited on: 25 days ago

Mortal Kombat's Arcade Music does not speed up when a player is about to be defeated as it uses a different sound call for that.