Stephane-D / SGDK

SGDK - A free and open development kit for the Sega Mega Drive
https://www.patreon.com/SGDK
MIT License
1.7k stars 179 forks source link

XGM2 tempo off on PAL #340

Closed matteusbeus closed 4 days ago

matteusbeus commented 6 days ago

Unlike the original XGM I'm having to set the XGM2_setMusicTempo to 60 to get things to play at the correct speed? Is this by design or is the detection not working properly?

Stephane-D commented 4 days ago

To be honest I'm not sure why it doesn't work, default is 60 tick / second and it should work for both PAL or NTSC. Maybe the value was reset for some reason. Anyway I push a fix which was needed to properly adjust timing depending the PAL / NTSC track info.