all repos — mgba @ 04f99bd3585686e80c5e88491335ca9133d1f8a0

mGBA Game Boy Advance Emulator

Prescale audio
Jeffrey Pfau jeffrey@endrift.com
Fri, 18 Oct 2013 09:41:13 -0700
commit

04f99bd3585686e80c5e88491335ca9133d1f8a0

parent

565ee43bb26639078c70e194b859a9c98ed819c8

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

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

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

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