all repos — mgba @ a87d30ed9f32fa7645906621780a37d0ddf7114d

mGBA Game Boy Advance Emulator

Fix channel 1 - 4 volume
Jeffrey Pfau jeffrey@endrift.com
Tue, 29 Oct 2013 21:12:26 -0700
commit

a87d30ed9f32fa7645906621780a37d0ddf7114d

parent

9fd181dba926bac7d06aa5c7bdd9905bdefc3c0a

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

jump to
M src/gba/gba-audio.csrc/gba/gba-audio.c

@@ -526,7 +526,7 @@

static void _sample(struct GBAAudio* audio) { int32_t sampleLeft = 0; int32_t sampleRight = 0; - int psgShift = 1 + audio->volume; + int psgShift = 6 - audio->volume; if (audio->ch1Left) { sampleLeft += audio->ch1.sample;