Skip to content

Commit

Permalink
Fixed bug in updateClockFrequency() (Drives did not work with OPT_SPE…
Browse files Browse the repository at this point in the history
…ED_BOOST)
  • Loading branch information
dirkwhoffmann committed Oct 21, 2024
1 parent ca9b1df commit 0ca03b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Emulator/Components/C64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,13 +371,13 @@ C64::clockFrequency() const
void
C64::updateClockFrequency()
{
auto frequency = clockFrequency();
durationOfOneCycle = 10000000000 / nativeClockFrequency();

auto frequency = clockFrequency();
sidBridge.sid[0].setClockFrequency((u32)frequency);
sidBridge.sid[1].setClockFrequency((u32)frequency);
sidBridge.sid[2].setClockFrequency((u32)frequency);
sidBridge.sid[3].setClockFrequency((u32)frequency);
durationOfOneCycle = 10000000000 / frequency;
}

void
Expand Down

0 comments on commit 0ca03b1

Please sign in to comment.