diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-02-17 20:16:23 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-02-19 15:07:42 -0700 |
commit | ad402e76afa9d4c16a514b3792c670e0c84c63c4 (patch) | |
tree | 5d2e3e03b0ef898a5488e097f1045a66f6fa064a /libs/ardour/session_transport.cc | |
parent | b1922fb220cab5b4685eb6c6f53ecc1be221f553 (diff) |
remove "destination_sample" from API for Session::set_transport_speed()
This was a leftover from changes made for Tracks Live, related to
the concept of an auto-return preference. We don't use this anywhere in Ardour
or Mixbus, and the concept should eventually be removed entirely.
Diffstat (limited to 'libs/ardour/session_transport.cc')
-rw-r--r-- | libs/ardour/session_transport.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index 52e99a75b2..1b7f3c7593 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -380,7 +380,7 @@ Session::post_locate () * @param speed New speed */ void -Session::set_transport_speed (double speed, samplepos_t destination_sample, bool abort, bool clear_state, bool as_default) +Session::set_transport_speed (double speed, bool abort, bool clear_state, bool as_default) { ENSURE_PROCESS_THREAD; DEBUG_TRACE (DEBUG::Transport, string_compose ("@ %5 Set transport speed to %1, abort = %2 clear_state = %3, current = %4 as_default %6\n", @@ -439,13 +439,6 @@ Session::set_transport_speed (double speed, samplepos_t destination_sample, bool _count_in_once = false; unset_play_loop (); } - } else { - bool const auto_return_enabled = (!config.get_external_sync() && (Config->get_auto_return_target_list() || abort)); - - if (!auto_return_enabled) { - _requested_return_sample = destination_sample; - } - } TFSM_STOP (abort, false); |