[Scummvm-cvs-logs] CVS: scummvm/sound midiparser.cpp,1.14,1.14.2.1
Jamieson Christian
jamieson630 at users.sourceforge.net
Sun Jul 27 06:33:03 CEST 2003
Update of /cvsroot/scummvm/scummvm/sound
In directory sc8-pr-cvs1:/tmp/cvs-serv26998/scummvm050/sound
Modified Files:
Tag: branch-0-5-0
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.14.2.1
diff -u -d -r1.14 -r1.14.2.1
--- midiparser.cpp 10 Jul 2003 04:34:44 -0000 1.14
+++ midiparser.cpp 27 Jul 2003 13:32:11 -0000 1.14.2.1
@@ -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