[Scummvm-cvs-logs] CVS: scummvm/sound midiparser.cpp,1.20,1.21
Torbj?rn Andersson
eriktorbjorn at users.sourceforge.net
Thu Apr 29 04:58:08 CEST 2004
Update of /cvsroot/scummvm/scummvm/sound
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8734
Modified Files:
midiparser.cpp
Log Message:
Changed printf() to warning(). (Even in the case where the message used to
say "ERROR".)
Index: midiparser.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/midiparser.cpp,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- midiparser.cpp 6 Jan 2004 12:45:33 -0000 1.20
+++ midiparser.cpp 29 Apr 2004 11:57:25 -0000 1.21
@@ -105,7 +105,7 @@
int i;
if (_hanging_notes_count >= ARRAYSIZE(_hanging_notes)) {
- printf ("WARNING! MidiParser::hangingNote(): Exceeded polyphony!\n");
+ warning("MidiParser::hangingNote(): Exceeded polyphony");
return;
}
@@ -138,7 +138,7 @@
++_hanging_notes_count;
} else {
// We checked this up top. We should never get here!
- printf ("WARNING! MidiParser::hangingNote(): Internal error!\n");
+ warning("MidiParser::hangingNote(): Internal error");
}
}
@@ -180,7 +180,7 @@
// Process the next info.
_position._last_event_tick += info.delta;
if (info.event < 0x80) {
- printf ("ERROR! Bad command or running status %02X\n", info.event);
+ warning("Bad command or running status %02X", info.event);
_position._play_pos = 0;
return;
}
@@ -300,7 +300,7 @@
temp_active[_next_event.basic.param1] &= ~ (1 << _next_event.channel());
}
} else if (_next_event.event == 0xFF && _next_event.ext.type == 0x2F) {
- // printf ("MidiParser::hangAllActiveNotes(): Hit End of Track with active notes left!\n");
+ // warning("MidiParser::hangAllActiveNotes(): Hit End of Track with active notes left");
for (i = 0; i < 128; ++i) {
for (j = 0; j < 16; ++j) {
if (temp_active[i] & (1 << j)) {
More information about the Scummvm-git-logs
mailing list