diff --git a/Core/MMC3_208.h b/Core/MMC3_208.h index 7f47d7a8..57784adc 100644 --- a/Core/MMC3_208.h +++ b/Core/MMC3_208.h @@ -49,12 +49,12 @@ protected: Stream(exRegs); } - void UpdatePrgMapping() + void UpdatePrgMapping() override { SelectPrgPage4x(0, _exRegs[5] << 2); } - uint8_t ReadRegister(uint16_t addr) + uint8_t ReadRegister(uint16_t addr) override { return _exRegs[addr & 0x03]; } diff --git a/Core/Mapper116.h b/Core/Mapper116.h index 02db8d27..70d93b7c 100644 --- a/Core/Mapper116.h +++ b/Core/Mapper116.h @@ -98,7 +98,6 @@ protected: if((_mode & 0x03) == 1) { switch(_a12Watcher.UpdateVramAddress(addr)) { case A12StateChange::Rise: - uint32_t count = _irqCounter; if(_irqCounter == 0 || _irqReload) { _irqCounter = _irqReloadValue; } else { diff --git a/Core/SoundMixer.cpp b/Core/SoundMixer.cpp index c4a0a788..fad08c9a 100644 --- a/Core/SoundMixer.cpp +++ b/Core/SoundMixer.cpp @@ -204,7 +204,7 @@ void SoundMixer::UpdateRates(bool forceUpdate) AudioStatistics stats = GetStatistics(); int32_t requestedLatency = (int32_t)EmulationSettings::GetAudioLatency(); double targetRate = _sampleRate; - if(stats.AverageLatency > 0 && EmulationSettings::GetEmulationSpeed(100)) { + if(stats.AverageLatency > 0 && EmulationSettings::GetEmulationSpeed() == 100) { if(stats.AverageLatency > requestedLatency + 2) { targetRate *= 1.005; } else if(stats.AverageLatency < requestedLatency - 2) {