analoguejb / Analogue-Mega-Sg-JB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ultima IV SMS FM Audio Issues - From SmokeMonsterPacks / Mega-Sg-Jailbreak Issue #49

bumfacekilla opened this issue · comments

Ultima IV for Sega Master System has strange audio glitches when running with 'Use FM' enabled, PSG audio sounds fine. These glitches manifest as buzzing or elongated tones when certain sound effects are triggered and at seemingly random (but frequent) times.

Tested in both PAL mode at 50 Hz output and NTSC Mode at 60 Hz output. Tested with genuine cartridge and with ROM dumped from said cartridge verified in GoodTools. Same ROM was also tested in Genesis Plus GX v1.7.4 core for retroarch with FM Audio enabled for comparison, audio sounded normal. Unfortunately, I do not have any FM audio enabled original Sega hardware to test this with.

To Reproduce

Toggle setting 'Use FM' in Core Options.
Run ROM (or original cartridge) 'Ultima IV - Quest of the Avatar (EB) [!].sms
Noticeable from start and seems to happen most frequently in battle, it seems as if certain sound effects 'clash' with the music. If left alone without interacting, music sounds mostly normal. Seems to be slightly more prevalent when playing in NTSC 60 Hz.
Expected behavior
FM audio without glitches

Firmware version
Tested on JB7.4 and JB7.5

Relevant Mega Sg settings
'Use FM' enabled in SMS Core.

ROM name and hash values
Ultima IV - Quest of the Avatar (EB) [!].sms
md5: c54c1a2559cec189f53e794177d002af
sha1: a90e21e5961bcf2e10b715a009c04e7c2017a3b1
crc32: b52d60c8

Re-tested after updating to the new JB7.9. The sound in Ultima IV, whilst still not perfect is now a ton better than it was in previous JB revisions. The odd, corrupted noises are now completely gone but the sound is still not quite right. There are still inconsistencies with the volume and timing of most sounds whilst playing, this may sound bad but it really is still a huge improvement over the previous versions.

However (and I thought this very interesting) the FM audio in Wonder Boy III the Dragon's Trap is now broken and was always fine in previous revisions. It's as if one of the FM channels' data is being read incorrectly, it sounds like a quiet track of random beeps and tones playing throughout any music. What's interesting is that it has messed up in exactly the same way as the FM audio output from the Mega SG cartridge by TerraOnion which plays Ultima IV's FM audio just fine. I wonder if there is some kind of connection where fixing one breaks the other?