From a8e2d72a73579ca227734e394e994b7147af2446 Mon Sep 17 00:00:00 2001 From: Souryo Date: Sun, 14 Feb 2016 16:58:43 -0500 Subject: [PATCH] Noise: Initialized period to the first entry in the LUT. FDS bios doesn't initialize the noise channel's period, making it run every single clock until a game is launched. --- Core/NoiseChannel.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/NoiseChannel.h b/Core/NoiseChannel.h index 51258907..7857564a 100644 --- a/Core/NoiseChannel.h +++ b/Core/NoiseChannel.h @@ -44,6 +44,7 @@ public: { ApuEnvelope::Reset(softReset); + _period = (GetNesModel() == NesModel::NTSC ? _noisePeriodLookupTableNtsc : _noisePeriodLookupTablePal)[0] - 1; _shiftRegister = 1; _modeFlag = false; }