mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 10:17:22 +00:00
For for Bug [775654] DOTT: Hanging notes
Corrected active notes tracking when switching between Type 2 SMF tracks. Although Note Off events from the previous track are properly simulated, those sustaining notes are cleared from the active notes list so that jumps within the new track will not attempt to sustain them again. svn-id: r9194
This commit is contained in:
parent
8b358b1208
commit
be898b414f
@ -263,6 +263,7 @@ bool MidiParser::setTrack (int track) {
|
||||
allNotesOff();
|
||||
|
||||
resetTracking();
|
||||
memset (_active_notes, 0, sizeof(_active_notes));
|
||||
_active_track = track;
|
||||
_position._play_pos = _tracks[track];
|
||||
parseNextEvent (_next_event);
|
||||
|
Loading…
x
Reference in New Issue
Block a user