AUDIO: Slight cleanup and typo fix in S&M OPL3 code.

This commit is contained in:
Johannes Schickel 2012-11-20 03:26:43 +01:00
parent 40ab5f8788
commit be60a641bf

View File

@ -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,