From b7e24583d99cca105feeaa84cb38e2725a511e6c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 27 Jan 2010 00:53:34 +0000 Subject: [PATCH] more MTC debugging git-svn-id: svn://localhost/ardour2/branches/3.0@6566 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/mtc_slave.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/mtc_slave.cc b/libs/ardour/mtc_slave.cc index 13f0bb0a3d..0dbad54dc5 100644 --- a/libs/ardour/mtc_slave.cc +++ b/libs/ardour/mtc_slave.cc @@ -115,6 +115,7 @@ MTC_Slave::update_mtc_time (const byte *msg, bool was_full, nframes_t now) */ if (now) { + DEBUG_TRACE (DEBUG::MTC, string_compose ("update MTC time does a reset, was full ? %1 now = %2\n", was_full, now)); maybe_reset (); } @@ -180,7 +181,7 @@ MTC_Slave::update_mtc_time (const byte *msg, bool was_full, nframes_t now) DEBUG_TRACE (DEBUG::MTC, string_compose ("MTC time timestamp = %1 TC %2 = frame %3 (from full message ? %4)\n", now, timecode, mtc_frame, was_full)); - + if (was_full || outside_window (mtc_frame)) { session.timecode_to_sample (timecode, mtc_frame, true, false); @@ -488,6 +489,7 @@ MTC_Slave::maybe_reset () reset_lock.lock (); if (reset_pending) { + DEBUG_TRACE (DEBUG::MTC, "actually reset\n"); reset (); reset_pending = 0; } -- 2.30.2