From 724f87a9843d41213322bd10731a7f3fd84bfbd0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 30 Nov 2009 18:32:59 +0000 Subject: [PATCH] more debugging tweaks git-svn-id: svn://localhost/ardour2/branches/3.0@6222 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/mtc_slave.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/ardour/mtc_slave.cc b/libs/ardour/mtc_slave.cc index 76abafb12b..39b9525bd0 100644 --- a/libs/ardour/mtc_slave.cc +++ b/libs/ardour/mtc_slave.cc @@ -286,6 +286,7 @@ MTC_Slave::speed_and_position (double& speed, nframes64_t& pos) session.request_transport_speed (0); update_mtc_status (MIDI::Parser::MTC_Stopped); reset(); + DEBUG_TRACE (DEBUG::MTC, "MTC not seen for 1/4 second - reset\n"); return false; } @@ -293,6 +294,10 @@ MTC_Slave::speed_and_position (double& speed, nframes64_t& pos) speed_now = (double) ((last.position - first_mtc_frame) / (double) (now - first_mtc_time)); + DEBUG_TRACE (DEBUG::MTC, string_compose ("apparent speed = %1 from last %2 now %3 first %4\n", + speed_now, last.position, now, first_mtc_time)); + + accumulator[accumulator_index++] = speed_now; if (accumulator_index >= accumulator_size) {