From 898620112b6243071d7d880eac80f2748e64386f Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Thu, 10 Jun 2021 23:46:46 +0100 Subject: [PATCH] Reinstate panning --- agb/src/sound/mixer/mixer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agb/src/sound/mixer/mixer.rs b/agb/src/sound/mixer/mixer.rs index f78779f6..1106fa4b 100644 --- a/agb/src/sound/mixer/mixer.rs +++ b/agb/src/sound/mixer/mixer.rs @@ -105,8 +105,8 @@ impl MixerBuffer { let v: Num = v.into(); channel.pos += channel.playback_speed; - buffer[i] += v; - buffer[i + SOUND_BUFFER_SIZE] += v; + buffer[i] += v * left_amount; + buffer[i + SOUND_BUFFER_SIZE] += v * right_amount; } }