From 1b3009d84926758f519c12f74d06dee532c3664f Mon Sep 17 00:00:00 2001 From: goyuken Date: Wed, 5 Mar 2014 05:06:34 +0000 Subject: [PATCH] also fix stereo audio in dual GB (But in this case we just downmix to mono since we have two gameboys one out each speaker) --- .../Consoles/Nintendo/Gameboy/GambatteLink.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.cs index 7ddab60a43..93cc5e047e 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.cs @@ -385,14 +385,13 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy { for (uint i = 0; i < SampPerFrame * 2; i += 2) { - // gameboy audio output is mono, so ignore one sample - int s = sl[i]; + int s = (sl[i] + sl[i + 1]) / 2; if (s != LatchL) { blip_left.AddDelta(i, s - LatchL); LatchL = s; } - s = sr[i]; + s = (sr[i] + sr[i + 1]) / 2; if (s != LatchR) { blip_right.AddDelta(i, s - LatchR);