summaryrefslogtreecommitdiff
path: root/libs/ardour/mtc_slave.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-12-01 15:16:11 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-12-01 15:16:11 +0000
commitf233c4738cf671a1957bb3729654b80a6f30cbbb (patch)
tree217b96d2a2c99fff2832a69e698b68bfd875b5f6 /libs/ardour/mtc_slave.cc
parent63484d5c9a7f89a2d9e37723045ce7e8cd4b991e (diff)
continue with MTC debugging
git-svn-id: svn://localhost/ardour2/branches/3.0@6247 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/mtc_slave.cc')
-rw-r--r--libs/ardour/mtc_slave.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/mtc_slave.cc b/libs/ardour/mtc_slave.cc
index 44386b647f..9a724b74d5 100644
--- a/libs/ardour/mtc_slave.cc
+++ b/libs/ardour/mtc_slave.cc
@@ -373,7 +373,9 @@ MTC_Slave::speed_and_position (double& speed, nframes64_t& pos)
/* scale elapsed time by the current MTC speed */
if (last.timestamp && (now > last.timestamp)) {
- elapsed = (nframes_t) floor (speed * (now - last.timestamp));
+ elapsed = (nframes_t) floor (last.speed * (now - last.timestamp));
+ DEBUG_TRACE (DEBUG_MTC, string_compose ("last timecode received @ %1, now = %2, elapsed frames = %3 w/speed= %4\n",
+ last.timestamp, now, elapsed, speed);
} else {
elapsed = 0; /* XXX is this right? */
}