Ticket #8365: midiparser-kyra.patch

File midiparser-kyra.patch, 1.5 KB (added by lordhoto, 16 years ago)

Changes some things from the midiparser else sound will not work

  • sound/midiparser.cpp

    RCS file: /cvsroot/scummvm/scummvm/sound/midiparser.cpp,v
    retrieving revision 1.22
    diff -u -r1.22 midiparser.cpp
     
    181181                _position._last_event_tick += info.delta;
    182182                if (info.event < 0x80) {
    183183                        warning("Bad command or running status %02X", info.event);
    184                         _position._play_pos = 0;
    185                         return;
     184                        // without this all works perfectly in kyra
     185                        // _position._play_pos = 0;
     186                        // return;
    186187                }
    187188
    188189                if (info.event == 0xF0) {
  • sound/midiparser.h

    RCS file: /cvsroot/scummvm/scummvm/sound/midiparser.h,v
    retrieving revision 1.24
    diff -u -r1.24 midiparser.h
     
    277277        bool   _autoLoop;       //!< For lightweight clients that don't provide their own flow control.
    278278        bool   _smartJump;      //!< Support smart expiration of hanging notes when jumping
    279279
    280         byte * _tracks[32];     //!< Multi-track MIDI formats are supported, up to 32 tracks.
     280        byte * _tracks[120];     //!< Multi-track MIDI formats are supported, up to 120 tracks.
    281281        byte   _num_tracks;     //!< Count of total tracks for multi-track MIDI formats. 1 for single-track formats.
    282282        byte   _active_track;   //!< Keeps track of the currently active track, in multi-track formats.
    283283