continue with MTC debugging
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 1 Dec 2009 16:16:22 +0000 (16:16 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 1 Dec 2009 16:16:22 +0000 (16:16 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@6251 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/mtc_slave.cc

index e346e11d56767bf4cd8a4423edec929c4d64b4a5..b8e26936224e4741e86b9a783b03586fdff3dd75 100644 (file)
@@ -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];