From b68552d9a0786b8ebe89c011cc880f061cd4ba87 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 13 Jun 2014 13:05:10 +0200 Subject: [PATCH] send-delayline: proper debug output (and sort includes on the way) --- libs/ardour/send.cc | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/libs/ardour/send.cc b/libs/ardour/send.cc index 02365e967c..87aadf4193 100644 --- a/libs/ardour/send.cc +++ b/libs/ardour/send.cc @@ -24,12 +24,13 @@ #include "pbd/boost_debug.h" #include "ardour/amp.h" -#include "ardour/send.h" -#include "ardour/session.h" #include "ardour/buffer_set.h" -#include "ardour/meter.h" +#include "ardour/debug.h" #include "ardour/io.h" +#include "ardour/meter.h" #include "ardour/panner_shell.h" +#include "ardour/send.h" +#include "ardour/session.h" #include "i18n.h" @@ -129,7 +130,10 @@ Send::set_delay_in(framecnt_t delay) return; } _delay_in = delay; - cerr << "SEND DELAY Pre: " << delay << "\n"; + + DEBUG_TRACE (DEBUG::LatencyCompensation, + string_compose ("Send::set_delay_in(%1) + %2 = %3\n", + delay, _delay_out, _delay_out + _delay_in)); _delayline.get()->set_delay(_delay_out + _delay_in); } @@ -141,7 +145,9 @@ Send::set_delay_out(framecnt_t delay) return; } _delay_out = delay; - cerr << "SEND DELAY Post: " << delay << "\n"; + DEBUG_TRACE (DEBUG::LatencyCompensation, + string_compose ("Send::set_delay_out(%1) + %2 = %3\n", + delay, _delay_in, _delay_out + _delay_in)); _delayline.get()->set_delay(_delay_out + _delay_in); } -- 2.30.2