From c9898c452a5a861e228dcbcd5daec183e33e2611 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Fri, 4 May 2018 17:52:10 -0400 Subject: [PATCH] GBHawk audio: Fix wave sampling in pokemon yellow --- BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/Audio.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/Audio.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/Audio.cs index 27dd958043..ad756ec936 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/Audio.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/Audio.cs @@ -666,7 +666,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk if (!WAVE_DAC_pow) { WAVE_output = 0; } // avoid aliasing at high frequenices - if (WAVE_frq > 0x7F0) { WAVE_output = 0; } + //if (WAVE_frq > 0x7F0) { WAVE_output = 0; } } } @@ -689,7 +689,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk NOISE_LFSR |= (bit_lfsr << 6); } - NOISE_output = NOISE_LFSR & 1; + NOISE_output = (NOISE_LFSR & 1) > 0 ? 0 : 1; NOISE_output *= NOISE_vol_state; } }