scummvm/scummvm — pull request #398 by wjp (2013-09-20 23:13:53+00:00)
Title: SCI: Move MIDI event processing out of parseNextEvent

The SCI MidiParser did event processing in parseNextEvent() which caused any signal and loop events there to be processed before the associated event delay. This was worked around by a number of hacks to delay these manually.

This branch adds a new virtual function processEvent() to MidiParser that MidiParser_SCI overrides to do the event processing after the delay.