Update Sid.cs

Fix a typo that was causing some scratching noise
This commit is contained in:
alyosha-tas 2017-05-24 22:00:09 -04:00 committed by GitHub
parent f81f745fcc
commit 11176e29de
1 changed files with 1 additions and 1 deletions

View File

@ -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;