mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-14 10:36:34 +01:00
continue with MTC debugging
git-svn-id: svn://localhost/ardour2/branches/3.0@6247 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
63484d5c9a
commit
f233c4738c
1 changed files with 3 additions and 1 deletions
|
|
@ -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? */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue