mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
Do not interpolate playhead when stopped.
This fixes a bug where, for a few seconds after transport stops, the users zoom+panning would get hijacked by the follow_playhead behavior, because the playhead was still "hunting".
This commit is contained in:
parent
21102b45d0
commit
a23a8ebcad
1 changed files with 5 additions and 0 deletions
|
|
@ -5759,6 +5759,11 @@ Editor::super_rapid_screen_update ()
|
||||||
_last_update_time = 0;
|
_last_update_time = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_session->transport_speed () == 0) {
|
||||||
|
//we are stopped. don't interpolate the playhead position; just set it
|
||||||
|
_last_update_time = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (_last_update_time > 0) {
|
if (_last_update_time > 0) {
|
||||||
/* interpolate and smoothen playhead position */
|
/* interpolate and smoothen playhead position */
|
||||||
const double ds = (now - _last_update_time) * _session->transport_speed() * _session->nominal_sample_rate () * 1e-6;
|
const double ds = (now - _last_update_time) * _session->transport_speed() * _session->nominal_sample_rate () * 1e-6;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue