projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63484d5
)
continue with MTC debugging
author
Paul Davis
<paul@linuxaudiosystems.com>
Tue, 1 Dec 2009 15:16:11 +0000
(15:16 +0000)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Tue, 1 Dec 2009 15:16:11 +0000
(15:16 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@6247
d708f5d6
-7413-0410-9779-
e7cbd77b26cf
libs/ardour/mtc_slave.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/mtc_slave.cc
b/libs/ardour/mtc_slave.cc
index 44386b647fbbc0a6891ac13bfc6c1acca54af3ec..9a724b74d555960395bb34b93427c068396720b7 100644
(file)
--- 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? */
}