diff --git a/src/emucore/CartBUS.cxx b/src/emucore/CartBUS.cxx index 0e47d4329..698488772 100644 --- a/src/emucore/CartBUS.cxx +++ b/src/emucore/CartBUS.cxx @@ -157,7 +157,7 @@ inline void CartridgeBUS::updateMusicModeDataFetchers() // Let's update counters and flags of the music mode data fetchers for(int x = 0; x <= 2; ++x) { - myMusicCounters[x] += myMusicFrequencies[x]; + myMusicCounters[x] += myMusicFrequencies[x] * wholeClocks; } } diff --git a/src/emucore/CartCDF.cxx b/src/emucore/CartCDF.cxx index b38ed0051..1f89afd07 100644 --- a/src/emucore/CartCDF.cxx +++ b/src/emucore/CartCDF.cxx @@ -159,7 +159,7 @@ inline void CartridgeCDF::updateMusicModeDataFetchers() // Let's update counters and flags of the music mode data fetchers for(int x = 0; x <= 2; ++x) { - myMusicCounters[x] += myMusicFrequencies[x]; + myMusicCounters[x] += myMusicFrequencies[x] * wholeClocks; } } diff --git a/src/emucore/CartDPCPlus.cxx b/src/emucore/CartDPCPlus.cxx index 4b6862d1b..8570400bb 100644 --- a/src/emucore/CartDPCPlus.cxx +++ b/src/emucore/CartDPCPlus.cxx @@ -173,7 +173,7 @@ inline void CartridgeDPCPlus::updateMusicModeDataFetchers() // Let's update counters and flags of the music mode data fetchers for(int x = 0; x <= 2; ++x) { - myMusicCounters[x] += myMusicFrequencies[x]; + myMusicCounters[x] += myMusicFrequencies[x] * wholeClocks; } }