From 04f99bd3585686e80c5e88491335ca9133d1f8a0 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Fri, 18 Oct 2013 09:41:13 -0700 Subject: [PATCH] Prescale audio --- src/gba/gba-audio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gba/gba-audio.c b/src/gba/gba-audio.c index 098bb90d0..dab08a8c6 100644 --- a/src/gba/gba-audio.c +++ b/src/gba/gba-audio.c @@ -310,15 +310,15 @@ static void _sample(struct GBAAudio* audio) { } if (audio->chALeft) { - sampleLeft += audio->chA.sample >> audio->volumeChA; + sampleLeft += (audio->chA.sample << 2) >> audio->volumeChA; } if (audio->chARight) { - sampleRight += audio->chA.sample >> audio->volumeChA; + sampleRight += (audio->chA.sample << 2) >> audio->volumeChA; } if (audio->chBLeft) { - sampleLeft += audio->chB.sample >> audio->volumeChB; + sampleLeft += (audio->chB.sample << 2) >> audio->volumeChB; } if (audio->chBRight) {