diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-10 09:16:31 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-10 09:16:39 -0600 |
commit | 843907654c8bb694d58e6efb1d313c735eb4ec4d (patch) | |
tree | 986567ca4e8d2d4ad9f4e0de6a6a230e9c45f0cc /libs | |
parent | 5dcac21092e1ce5853ebbaa04c140f09586d3ae2 (diff) |
do not reset default transport speed when stopping to prepare for a locate
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/session_transport.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index b8e2431aff..db3469b93f 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -99,8 +99,14 @@ Session::realtime_stop (bool abort, bool clear_state) DEBUG_TRACE (DEBUG::Transport, string_compose ("realtime stop @ %1 speed = %2\n", _transport_sample, _transport_speed)); PostTransportWork todo = PostTransportStop; - /* this resets the speed we will start at if just requested to roll again */ - _default_transport_speed = 1.0; + /* this resets the speed we will start at if just requested to roll + * again. Don't do it if we are stopping to locate ... in those + * conditions, keep the current default speed so that when we start + * again we resume that speed + */ + if (!_transport_fsm->declicking_for_locate()) { + _default_transport_speed = 1.0; + } /* call routes */ |