diff options
author | Simon Howard | 2010-04-22 21:38:51 +0000 |
---|---|---|
committer | Simon Howard | 2010-04-22 21:38:51 +0000 |
commit | 13d87ff8f1f839a9b10178e00cfbe58aca1c6124 (patch) | |
tree | 529d193bbeccd9411ee57c27b18ec05a38b0f120 /src | |
parent | 695b64ce292e94a808797bfcaf2ed3f9823ad577 (diff) | |
download | chocolate-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.c | 8 |
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; } } |