Ticket #2650: ro-workaround.diff

File ro-workaround.diff, 751 bytes (added by eriktorbjorn, 18 years ago)

Ugly workaround patch

  • engines/scumm/midiparser_ro.cpp

     
    8383                return;
    8484        }
    8585
     86        // FIXME: What are these? They both happen at the end of the clerics's
     87        // music. Ignoring them like this makes he music sound strange, but
     88        // allowing them to pass through is even worse since anything less
     89        // than 0x80 is an invalid event.
     90
     91        if (info.event == 0x08 || info.event == 0x3C) {
     92                warning("Skipping unknown MIDI event %02X", info.event);
     93                info.event = 0xFF;
     94                info.ext.type = 0x7F;
     95                info.length = 0;
     96                info.ext.data = 0;
     97                return;
     98        }
     99
    86100        if (info.event < 0x80)
    87101                return;
    88102