summaryrefslogtreecommitdiff
path: root/libs/ardour/mtc_slave.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-12-01 16:16:22 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-12-01 16:16:22 +0000
commit194ee5d9ba7947dd7e8798ec6d5d562cb0318d48 (patch)
treee73f768a2f779aa8653cee2ef17788c2c48959f0 /libs/ardour/mtc_slave.cc
parent50131b3751e6ed5c9ed7450406049b2195ea9ecf (diff)
continue with MTC debugging
git-svn-id: svn://localhost/ardour2/branches/3.0@6251 d708f5d6-7413-0410-9779-e7cbd77b26cf
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];