From be60a641bfb624c0b1b455c751790b28cdcdd45f Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 20 Nov 2012 03:26:43 +0100 Subject: AUDIO: Slight cleanup and typo fix in S&M OPL3 code. --- audio/softsynth/adlib.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'audio/softsynth/adlib.cpp') diff --git a/audio/softsynth/adlib.cpp b/audio/softsynth/adlib.cpp index ba39e6d5e2..eb2f1093bb 100644 --- a/audio/softsynth/adlib.cpp +++ b/audio/softsynth/adlib.cpp @@ -2007,12 +2007,13 @@ void MidiDriver_ADLIB::adlibSetupChannelSecondary(int chan, const AdLibInstrumen // The original uses the following (strange) behavior: #if 0 if (instr->feedback | (pan > 64)) { - adlibWriteSecondary((byte)chan + 0xC0, 0x10); - } else { adlibWriteSecondary((byte)chan + 0xC0, 0x20); + } else { + adlibWriteSecondary((byte)chan + 0xC0, 0x10); } -#endif +#else adlibWriteSecondary((byte)chan + 0xC0, instr->feedback | ((pan > 64) ? 0x20 : 0x10)); +#endif } void MidiDriver_ADLIB::mcInitStuff(AdLibVoice *voice, Struct10 *s10, -- cgit v1.2.3