mirror of https://github.com/mgba-emu/mgba.git
Fix audio loudness issues
This commit is contained in:
parent
04f99bd358
commit
79d483d002
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue