From 11176e29de44a2a427d859ae038be80f68e7dd16 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Wed, 24 May 2017 22:00:09 -0400 Subject: [PATCH] Update Sid.cs Fix a typo that was causing some scratching noise --- BizHawk.Emulation.Cores/Computers/Commodore64/MOS/Sid.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BizHawk.Emulation.Cores/Computers/Commodore64/MOS/Sid.cs b/BizHawk.Emulation.Cores/Computers/Commodore64/MOS/Sid.cs index 53870c9308..b5280975d6 100644 --- a/BizHawk.Emulation.Cores/Computers/Commodore64/MOS/Sid.cs +++ b/BizHawk.Emulation.Cores/Computers/Commodore64/MOS/Sid.cs @@ -302,7 +302,7 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64.MOS //re-sample back down to the original number of samples for (double i = 0; i < filter_index; i++) { - _outputBuffer_filtered[(int)i] = (int)(temp_buffer[(int)Math.Floor((i / (filter_index-1) * (nsamp_2 - 1)))]/(nsamp/2)); + _outputBuffer_filtered[(int)i] = (int)(temp_buffer[(int)Math.Floor((i / (filter_index-1) * (nsamp_2 - 1)))]/(nsamp_2/2)); if (loc_filterFrequency==0) { _outputBuffer_filtered[(int)i] = 0;