summaryrefslogtreecommitdiff
path: root/libs/ardour/mtc_slave.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/mtc_slave.cc')
-rw-r--r--libs/ardour/mtc_slave.cc10
1 files changed, 7 insertions, 3 deletions
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];