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)

This commit is contained in:
goyuken 2014-03-05 05:06:34 +00:00
parent dbe0106814
commit 1b3009d849
1 changed files with 2 additions and 3 deletions

View File

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