From 194ee5d9ba7947dd7e8798ec6d5d562cb0318d48 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 1 Dec 2009 16:16:22 +0000 Subject: continue with MTC debugging git-svn-id: svn://localhost/ardour2/branches/3.0@6251 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/mtc_slave.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'libs/ardour/mtc_slave.cc') diff --git a/libs/ardour/mtc_slave.cc b/libs/ardour/mtc_slave.cc index e346e11d56..b8e2693622 100644 --- a/libs/ardour/mtc_slave.cc +++ b/libs/ardour/mtc_slave.cc @@ -76,9 +76,11 @@ MTC_Slave::rebind (MIDI::Port& p) void MTC_Slave::update_mtc_qtr (Parser& /*p*/, int which_qtr) { + nframes64_t now = session.engine().frame_time(); + + DEBUG_TRACE (DEBUG::MTC, string_compose ("qtr frame %1 at %2, valid-for-time? %3\n", which_qtr, now, qtr_frame_messages_valid_for_time)); + if (qtr_frame_messages_valid_for_time) { - - nframes64_t now = session.engine().frame_time(); if (which_qtr != 7) { @@ -113,7 +115,9 @@ MTC_Slave::update_mtc_time (const byte *msg, bool was_full) Timecode::Time timecode; TimecodeFormat tc_format; bool reset_tc = true; - + + DEBUG_TRACE (DEBUG::MTC, string_compose ("full mtc time known at %1, full ? %2\n", now, was_full)); + timecode.hours = msg[3]; timecode.minutes = msg[2]; timecode.seconds = msg[1]; -- cgit v1.2.3