From d02a8fea571e3e762554278887ab6fdacb49311a Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Thu, 1 Jan 2015 23:19:16 -0800 Subject: [PATCH] GBA Audio: Fix GB audio channels being too quiet Conflicts: src/gba/gba-audio.c --- CHANGES | 1 + src/gba/gba-audio.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 04076ece9..8d475a17b 100644 --- a/CHANGES +++ b/CHANGES @@ -22,6 +22,7 @@ Bugfixes: - GBA Video: Fix window interactions with 16-color mode 0 mosaic - GBA Video: Fix sprite boundary conditions with mosaic - Video: Fix FFmpeg crashing when the file extension is wrong + - GBA Audio: Fix GB audio channels being too quiet (fixes #159) Misc: - Qt: Disable sync to video by default - GBA: Exit cleanly on FATAL if the port supports it diff --git a/src/gba/gba-audio.c b/src/gba/gba-audio.c index a5440c4d5..d561685ce 100644 --- a/src/gba/gba-audio.c +++ b/src/gba/gba-audio.c @@ -690,7 +690,7 @@ static int _applyBias(struct GBAAudio* audio, int sample) { static void _sample(struct GBAAudio* audio) { int32_t sampleLeft = 0; int32_t sampleRight = 0; - int psgShift = 6 - audio->volume; + int psgShift = 5 - audio->volume; if (audio->ch1Left) { sampleLeft += audio->ch1.sample;