aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-04-29 11:57:25 +0000
committerTorbjörn Andersson2004-04-29 11:57:25 +0000
commita0623e6012c179951d9d06fc7adb555e9a0123ab (patch)
tree72927b2e5be4502cd5d581ddcdc18c9c594ce5d0
parent92407c56b389abef86059efcba3c0cb28661f40c (diff)
downloadscummvm-rg350-a0623e6012c179951d9d06fc7adb555e9a0123ab.tar.gz
scummvm-rg350-a0623e6012c179951d9d06fc7adb555e9a0123ab.tar.bz2
scummvm-rg350-a0623e6012c179951d9d06fc7adb555e9a0123ab.zip
Changed printf() to warning(). (Even in the case where the message used to
say "ERROR".) svn-id: r13677
-rw-r--r--sound/midiparser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/midiparser.cpp b/sound/midiparser.cpp
index 6dd633b807..c2c97a5de1 100644
--- a/sound/midiparser.cpp
+++ b/sound/midiparser.cpp
@@ -105,7 +105,7 @@ void MidiParser::hangingNote (byte channel, byte note, uint32 time_left, bool re
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 @@ void MidiParser::hangingNote (byte channel, byte note, uint32 time_left, bool re
++_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 @@ void MidiParser::onTimer() {
// 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 @@ void MidiParser::hangAllActiveNotes() {
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)) {