ref: 13d87ff8f1f839a9b10178e00cfbe58aca1c6124
parent: 695b64ce292e94a808797bfcaf2ed3f9823ad577
author: Simon Howard <[email protected]>
date: Thu Apr 22 17:38:51 EDT 2010
Disable OPL debugging messages. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1913
--- 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 @@
break;
default:
+#ifdef OPL_MIDI_DEBUG
fprintf(stderr, "Unknown MIDI controller type: %i\n", controller);
+#endif
break;
}
}
@@ -1020,8 +1024,10 @@
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 @@
break;
default:
+#ifdef OPL_MIDI_DEBUG
fprintf(stderr, "Unknown MIDI event type %i\n", event->event_type);
+#endif
break;
}
}