From 0e92a2284081ee63449df8954590dc9d9910eebc Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Thu, 19 Sep 2019 21:30:28 -0700 Subject: [PATCH] GB Audio: Fix channel 4 volume (fixes #1529) --- src/gb/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gb/audio.c b/src/gb/audio.c index b36cc3776..4c9fc9eb9 100644 --- a/src/gb/audio.c +++ b/src/gb/audio.c @@ -770,7 +770,7 @@ static int32_t _updateSquareChannel(struct GBAudioSquareChannel* ch) { static int16_t _coalesceNoiseChannel(struct GBAudioNoiseChannel* ch) { if (!ch->nSamples) { - return ch->sample; + return ch->sample << 3; } // TODO keep track of timing int16_t sample = (ch->samples << 3) / ch->nSamples;