From 545b4dcf496130d996dc8d8a4076d865d414576d Mon Sep 17 00:00:00 2001 From: EkeEke Date: Mon, 15 Oct 2012 13:16:19 +0200 Subject: [PATCH] fixed incorrect Game Gear PSG stereo emulation --- source/sound/sn76489.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/sound/sn76489.c b/source/sound/sn76489.c index bcba8cb..78a051d 100644 --- a/source/sound/sn76489.c +++ b/source/sound/sn76489.c @@ -325,8 +325,8 @@ void SN76489_Config(unsigned int clocks, int preAmp, int boostNoise, int stereo) for (i=0; i<4; i++) { /* stereo channel pre-amplification */ - SN76489.PreAmp[i][0] = preAmp * ((stereo >> (i*2)) & 1); - SN76489.PreAmp[i][1] = preAmp * ((stereo >> (i*2 + 1)) & 1); + SN76489.PreAmp[i][0] = preAmp * ((stereo >> (i + 4)) & 1); + SN76489.PreAmp[i][1] = preAmp * ((stereo >> (i + 0)) & 1); /* noise channel boost */ if (i == 3)