remove double assignments and one debug trace output; tweak second debug trace output
This commit is contained in:
parent
7c820af42f
commit
6dad858620
@ -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;
|
lp = last.position;
|
||||||
when = last.timestamp;
|
when = last.timestamp;
|
||||||
speed = last.speed;
|
speed = last.speed;
|
||||||
@ -139,8 +132,8 @@ TransportMaster::speed_and_position (double& speed, samplepos_t& pos, samplepos_
|
|||||||
|
|
||||||
pos = last.position + (now - last.timestamp) * speed;
|
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",
|
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)));
|
name(), speed, pos, last.position, (now - last.timestamp), speed, when));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user