From c9b604502c19282545f015b43632d354e8cfaa45 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sat, 22 Mar 2008 15:20:34 -0500 Subject: [PATCH] Make event debugging a separate option. --- Makefile | 2 ++ jack.C | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2de22c6..7a5f80e 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,8 @@ ifeq ($(USE_LASH),1) CXXFLAGS+=-DUSE_LASH `pkg-config --cflags lash-1.0` endif +# uncomment this line to print each playback event to the console (not RT safe) +# CXXFLAGS+= -DDEBUG_EVENTS SRCS= \ canvas.C \ diff --git a/jack.C b/jack.C index 354df17..0a1c3c4 100644 --- a/jack.C +++ b/jack.C @@ -150,7 +150,7 @@ midi_write_event ( int port, const midievent *e ) return; } -#ifndef NDEBUG +#ifdef DEBUG_EVENTS e->pretty_print(); #endif