Ticket #5524: midi_sustain.patch

File midi_sustain.patch, 487 bytes (added by SF/sven3000, 10 years ago)

Patch to disable sustain in allNotesOff function

  • engines/sci/sound/midiparser_sci.cpp

     
    654654
    655655        for (i = 0; i < 16; ++i) {
    656656                if (_channelRemap[i] != -1)
     657                {
    657658                        sendToDriver(0xB0 | i, 0x7b, 0); // All notes off
     659                        sendToDriver(0xB0 | i, 0x40, 0); // Sustain off
     660                }
    658661        }
    659662
    660663        memset(_active_notes, 0, sizeof(_active_notes));