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 | |
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')
-rw-r--r-- | libs/ardour/ardour/session.h | 2 | ||||
-rw-r--r-- | libs/ardour/session_export.cc | 2 | ||||
-rw-r--r-- | libs/ardour/session_process.cc | 2 | ||||
-rw-r--r-- | libs/ardour/session_transport.cc | 9 |
4 files changed, 4 insertions, 11 deletions
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index 8fe209a552..9170c0253c 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -1692,7 +1692,7 @@ private: int micro_locate (samplecnt_t distance); void force_locate (samplepos_t sample, LocateTransportDisposition); - void set_transport_speed (double speed, samplepos_t destination_sample, bool abort = false, bool clear_state = false, bool as_default = false); + void set_transport_speed (double speed, bool abort = false, bool clear_state = false, bool as_default = false); void realtime_stop (bool abort, bool clear_state); void realtime_locate (bool); void non_realtime_start_scrub (); diff --git a/libs/ardour/session_export.cc b/libs/ardour/session_export.cc index c86d55e248..7ed9498507 100644 --- a/libs/ardour/session_export.cc +++ b/libs/ardour/session_export.cc @@ -253,7 +253,7 @@ Session::process_export_fw (pframes_t nframes) return; } - set_transport_speed (1.0, 0, false); + set_transport_speed (1.0, false); butler_transport_work (); g_atomic_int_set (&_butler->should_do_transport_work, 0); butler_completed_transport_work (); diff --git a/libs/ardour/session_process.cc b/libs/ardour/session_process.cc index a4429c3609..f98970bf2c 100644 --- a/libs/ardour/session_process.cc +++ b/libs/ardour/session_process.cc @@ -895,7 +895,7 @@ Session::process_event (SessionEvent* ev) case SessionEvent::SetTransportSpeed: - set_transport_speed (ev->speed, ev->target_sample, ev->yes_or_no, ev->second_yes_or_no, ev->third_yes_or_no); + set_transport_speed (ev->speed, ev->yes_or_no, ev->second_yes_or_no, ev->third_yes_or_no); break; case SessionEvent::SetTransportMaster: 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); |