all repos — mgba @ a6c0ac994160d57ba8962963be0c9b5fc33c6ed3

mGBA Game Boy Advance Emulator

Revert "GBA Audio: Increase PSG volume (fixes #932)"

This reverts commit faa688c21f46bd2da8e0c2567679decf4f3778fb.
Vicki Pfau vi@endrift.com
Sat, 07 Apr 2018 20:59:28 -0700
commit

a6c0ac994160d57ba8962963be0c9b5fc33c6ed3

parent

9e176fef2be780e0f01c26111cecd7b2ca7c4000

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

jump to
M src/gba/audio.csrc/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 = 4 - audio->volume; + int psgShift = 5 - audio->volume; GBAudioSamplePSG(&audio->psg, &sampleLeft, &sampleRight); sampleLeft >>= psgShift; sampleRight >>= psgShift;