scummvm/scummvm — pull request #419 by wjp (2013-12-31 13:04:04+00:00)
Title: SCI: Rewrite MIDI channel remapping

This adds MIDI state tracking to allow channels to be temporarily unmapped and later re-mapped when there are free device channels available again.

It should fix a number of fade and instrument-related bugs, but needs testing.

There are a number of remaining known issues, particularly with initialization, but most of those need the MidiParser to be switched from time-based to byte-based tracking.