diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-03-03 13:19:01 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-03-03 13:19:01 -0700 |
commit | 6dad858620dfa2bf91c9a8c4acca9dea21c794fd (patch) | |
tree | ecebd460fb4eb9b1e17d25c0834e424ccbd807b1 /libs/ardour/transport_master.cc | |
parent | 7c820af42f0343e885f2910ec04eb92ae9235cc5 (diff) |
remove double assignments and one debug trace output; tweak second debug trace output
Diffstat (limited to 'libs/ardour/transport_master.cc')
-rw-r--r-- | libs/ardour/transport_master.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/libs/ardour/transport_master.cc b/libs/ardour/transport_master.cc index 9da4fe8382..7c43c31ce1 100644 --- a/libs/ardour/transport_master.cc +++ b/libs/ardour/transport_master.cc @@ -124,13 +124,6 @@ TransportMaster::speed_and_position (double& speed, samplepos_t& pos, samplepos_ lp = last.position; when = last.timestamp; speed = last.speed; - pos = last.position + (now - last.timestamp) * last.speed; - - DEBUG_TRACE (DEBUG::Slave, string_compose ("%1: speed_and_position @ %5 last @ %2 pos: %3 spd: %4\n", name(), last.timestamp, last.position, last.speed, now)); - - lp = last.position; - when = last.timestamp; - speed = last.speed; /* provide a .1% deadzone to lock the speed */ if (fabs (speed - 1.0) <= 0.001) { @@ -139,8 +132,8 @@ TransportMaster::speed_and_position (double& speed, samplepos_t& pos, samplepos_ pos = last.position + (now - last.timestamp) * speed; - DEBUG_TRACE (DEBUG::Slave, string_compose ("%1 sync spd: %2 pos: %3 | last-pos: %4 | elapsed: %5\n", - name(), speed, pos, last.position, (now - last.timestamp))); + DEBUG_TRACE (DEBUG::Slave, string_compose ("%1 sync spd: %2 pos: %3 | last-pos: %4 @ %7| elapsed: %5 | speed: %6\n", + name(), speed, pos, last.position, (now - last.timestamp), speed, when)); return true; } |