From faa688c21f46bd2da8e0c2567679decf4f3778fb Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Wed, 27 Dec 2017 12:38:19 -0500 Subject: [PATCH] GBA Audio: Increase PSG volume (fixes #932) --- CHANGES | 1 + src/gba/audio.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 3eb60db07..f1f2c7469 100644 --- a/CHANGES +++ b/CHANGES @@ -10,6 +10,7 @@ Bugfixes: - GBA Cheats: Fix slide codes not initializing properly - Qt: Fix locale being set to English on settings save (fixes mgba.io/i/906) - LR35902: Fix watchpoints not reporting new value + - GBA Audio: Increase PSG volume (fixes mgba.io/i/932) Misc: - GBA: Improve multiboot image detection - GB MBC: Remove erroneous bank 0 wrapping diff --git a/src/gba/audio.c b/src/gba/audio.c index be736e78b..f98a65bde 100644 --- a/src/gba/audio.c +++ b/src/gba/audio.c @@ -260,7 +260,7 @@ static void _sample(struct mTiming* timing, void* user, uint32_t cyclesLate) { struct GBAAudio* audio = user; int16_t sampleLeft = 0; int16_t sampleRight = 0; - int psgShift = 5 - audio->volume; + int psgShift = 4 - audio->volume; GBAudioSamplePSG(&audio->psg, &sampleLeft, &sampleRight); sampleLeft >>= psgShift; sampleRight >>= psgShift;