all repos — mgba @ 79d483d00243a00ba7499eda1cb3230de218a38d

mGBA Game Boy Advance Emulator

Fix audio loudness issues
Jeffrey Pfau jeffrey@endrift.com
Fri, 18 Oct 2013 19:44:55 -0700
commit

79d483d00243a00ba7499eda1cb3230de218a38d

parent

04f99bd3585686e80c5e88491335ca9133d1f8a0

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

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

@@ -310,19 +310,19 @@ sampleRight += audio->ch4.sample >> psgShift;

} if (audio->chALeft) { - sampleLeft += (audio->chA.sample << 2) >> audio->volumeChA; + sampleLeft += (audio->chA.sample << 2) >> !audio->volumeChA; } if (audio->chARight) { - sampleRight += (audio->chA.sample << 2) >> audio->volumeChA; + sampleRight += (audio->chA.sample << 2) >> !audio->volumeChA; } if (audio->chBLeft) { - sampleLeft += (audio->chB.sample << 2) >> audio->volumeChB; + sampleLeft += (audio->chB.sample << 2) >> !audio->volumeChB; } if (audio->chBRight) { - sampleRight += audio->chB.sample >> audio->volumeChB; + sampleRight += (audio->chB.sample << 2) >> !audio->volumeChB; } pthread_mutex_lock(&audio->bufferMutex);