summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2010-04-22 21:38:51 +0000
committerSimon Howard2010-04-22 21:38:51 +0000
commit13d87ff8f1f839a9b10178e00cfbe58aca1c6124 (patch)
tree529d193bbeccd9411ee57c27b18ec05a38b0f120 /src
parent695b64ce292e94a808797bfcaf2ed3f9823ad577 (diff)
downloadchocolate-doom-13d87ff8f1f839a9b10178e00cfbe58aca1c6124.tar.gz
chocolate-doom-13d87ff8f1f839a9b10178e00cfbe58aca1c6124.tar.bz2
chocolate-doom-13d87ff8f1f839a9b10178e00cfbe58aca1c6124.zip
Disable OPL debugging messages.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1913
Diffstat (limited to 'src')
-rw-r--r--src/i_oplmusic.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/i_oplmusic.c b/src/i_oplmusic.c
index 9501d51d..e8d65d6d 100644
--- a/src/i_oplmusic.c
+++ b/src/i_oplmusic.c
@@ -43,6 +43,8 @@
#include "opl.h"
#include "midifile.h"
+// #define OPL_MIDI_DEBUG
+
#define MAXMIDLENGTH (96 * 1024)
#define GENMIDI_NUM_INSTRS 128
@@ -965,7 +967,9 @@ static void ControllerEvent(opl_track_data_t *track, midi_event_t *event)
break;
default:
+#ifdef OPL_MIDI_DEBUG
fprintf(stderr, "Unknown MIDI controller type: %i\n", controller);
+#endif
break;
}
}
@@ -1020,8 +1024,10 @@ static void MetaEvent(opl_track_data_t *track, midi_event_t *event)
break;
default:
+#ifdef OPL_MIDI_DEBUG
fprintf(stderr, "Unknown MIDI meta event type: %i\n",
event->data.meta.type);
+#endif
break;
}
}
@@ -1063,7 +1069,9 @@ static void ProcessEvent(opl_track_data_t *track, midi_event_t *event)
break;
default:
+#ifdef OPL_MIDI_DEBUG
fprintf(stderr, "Unknown MIDI event type %i\n", event->event_type);
+#endif
break;
}
}