From 13d87ff8f1f839a9b10178e00cfbe58aca1c6124 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 22 Apr 2010 21:38:51 +0000 Subject: Disable OPL debugging messages. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1913 --- src/i_oplmusic.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } } -- cgit v1.2.3