all repos — mgba @ 0e92a2284081ee63449df8954590dc9d9910eebc

mGBA Game Boy Advance Emulator

GB Audio: Fix channel 4 volume (fixes #1529)
Vicki Pfau vi@endrift.com
Thu, 19 Sep 2019 21:30:28 -0700
commit

0e92a2284081ee63449df8954590dc9d9910eebc

parent

9886bce1550e62dfbb9432764d245d980800bf9f

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gb/audio.csrc/gb/audio.c

@@ -770,7 +770,7 @@ }

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;