remove double assignments and one debug trace output; tweak second debug trace output

This commit is contained in:
Paul Davis 2019-03-03 13:19:01 -07:00
parent 7c820af42f
commit 6dad858620

View File

@ -121,13 +121,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;
@ -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;
}