summaryrefslogtreecommitdiff
path: root/libs/ardour/mtc_slave.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-11-30 18:32:59 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-11-30 18:32:59 +0000
commit724f87a9843d41213322bd10731a7f3fd84bfbd0 (patch)
tree46b44403e4f2cd43fcc1ef25354a43463b17d61d /libs/ardour/mtc_slave.cc
parent13e96a8cc7bb6af377164de49c25f96f0d24e7b4 (diff)
more debugging tweaks
git-svn-id: svn://localhost/ardour2/branches/3.0@6222 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/mtc_slave.cc')
-rw-r--r--libs/ardour/mtc_slave.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ardour/mtc_slave.cc b/libs/ardour/mtc_slave.cc
index 76abafb12b..39b9525bd0 100644
--- a/libs/ardour/mtc_slave.cc
+++ b/libs/ardour/mtc_slave.cc
@@ -286,6 +286,7 @@ MTC_Slave::speed_and_position (double& speed, nframes64_t& pos)
session.request_transport_speed (0);
update_mtc_status (MIDI::Parser::MTC_Stopped);
reset();
+ DEBUG_TRACE (DEBUG::MTC, "MTC not seen for 1/4 second - reset\n");
return false;
}
@@ -293,6 +294,10 @@ MTC_Slave::speed_and_position (double& speed, nframes64_t& pos)
speed_now = (double) ((last.position - first_mtc_frame) / (double) (now - first_mtc_time));
+ DEBUG_TRACE (DEBUG::MTC, string_compose ("apparent speed = %1 from last %2 now %3 first %4\n",
+ speed_now, last.position, now, first_mtc_time));
+
+
accumulator[accumulator_index++] = speed_now;
if (accumulator_index >= accumulator_size) {