AUDIO: miles audio AdLib: fix left/right panning

channels were (wrongly) reversed
found and tested in discworld 1
This commit is contained in:
Martin Kiewitz 2015-06-28 02:22:51 +02:00
parent 63656348a7
commit d1fe3d1aa3

View File

@ -789,9 +789,9 @@ void MidiDriver_Miles_AdLib::updatePhysicalFmVoice(byte virtualFmVoice, bool key
byte panning = _midiChannels[midiChannel].currentPanning;
if (panning <= MILES_ADLIB_STEREO_PANNING_THRESHOLD_LEFT) {
regC0 |= 0x10; // left speaker only
regC0 |= 0x20; // left speaker only
} else if (panning >= MILES_ADLIB_STEREO_PANNING_THRESHOLD_RIGHT) {
regC0 |= 0x20; // right speaker only
regC0 |= 0x10; // right speaker only
} else {
regC0 |= 0x30; // center
}