Fix audio loudness issues

This commit is contained in:
Jeffrey Pfau 2013-10-18 19:44:55 -07:00
parent 04f99bd358
commit 79d483d002
1 changed files with 4 additions and 4 deletions

View File

@ -310,19 +310,19 @@ static void _sample(struct GBAAudio* audio) {
} }
if (audio->chALeft) { if (audio->chALeft) {
sampleLeft += (audio->chA.sample << 2) >> audio->volumeChA; sampleLeft += (audio->chA.sample << 2) >> !audio->volumeChA;
} }
if (audio->chARight) { if (audio->chARight) {
sampleRight += (audio->chA.sample << 2) >> audio->volumeChA; sampleRight += (audio->chA.sample << 2) >> !audio->volumeChA;
} }
if (audio->chBLeft) { if (audio->chBLeft) {
sampleLeft += (audio->chB.sample << 2) >> audio->volumeChB; sampleLeft += (audio->chB.sample << 2) >> !audio->volumeChB;
} }
if (audio->chBRight) { if (audio->chBRight) {
sampleRight += audio->chB.sample >> audio->volumeChB; sampleRight += (audio->chB.sample << 2) >> !audio->volumeChB;
} }
pthread_mutex_lock(&audio->bufferMutex); pthread_mutex_lock(&audio->bufferMutex);