[Scummvm-cvs-logs] CVS: scummvm/sound midiparser.cpp,1.14,1.15
Jamieson Christian
jamieson630 at users.sourceforge.net
Sat Jul 26 12:38:03 CEST 2003
Update of /cvsroot/scummvm/scummvm/sound
In directory sc8-pr-cvs1:/tmp/cvs-serv27570/scummvm/sound
Modified Files:
midiparser.cpp
Log Message:
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.
Index: midiparser.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/midiparser.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- midiparser.cpp 10 Jul 2003 04:34:44 -0000 1.14
+++ midiparser.cpp 26 Jul 2003 19:37:54 -0000 1.15
@@ -263,6 +263,7 @@
allNotesOff();
resetTracking();
+ memset (_active_notes, 0, sizeof(_active_notes));
_active_track = track;
_position._play_pos = _tracks[track];
parseNextEvent (_next_event);
More information about the Scummvm-git-logs
mailing list