diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-09-25 12:16:13 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-09-25 12:16:13 -0600 |
commit | 5ec5bc4523e5c0fd998a6a133c6a03ab1475f063 (patch) | |
tree | f9ef6c71d72ff95a4824c417ec874e8768627db7 /libs/ardour/session_transport.cc | |
parent | 13c874d8b071e4d1d540ec7da2d76856ef228918 (diff) |
goodbye USE_TRACKS_CODE_FEATURES and is_tracks_build
Diffstat (limited to 'libs/ardour/session_transport.cc')
-rw-r--r-- | libs/ardour/session_transport.cc | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index f2766f2c7e..dbda0aabb3 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -1425,83 +1425,6 @@ Session::non_realtime_locate () clear_clicks (); } -#ifdef USE_TRACKS_CODE_FEATURES -bool -Session::select_playhead_priority_target (samplepos_t& jump_to) -{ - jump_to = -1; - - AutoReturnTarget autoreturn = Config->get_auto_return_target_list (); - - if (!autoreturn) { - return false; - } - - if (Profile->get_trx() && transport_rolling() ) { - // We're playing, so do nothing. - // Next stop will put us where we need to be. - return false; - } - - /* Note that the order of checking each AutoReturnTarget flag defines - the priority each flag. - - Ardour/Mixbus: Last Locate - Range Selection - Loop Range - Region Selection - - Tracks: Range Selection - Loop Range - Region Selection - Last Locate - */ - - if (autoreturn & RangeSelectionStart) { - if (!_range_selection.empty()) { - jump_to = _range_selection.from; - } else { - if (transport_rolling ()) { - /* Range selection no longer exists, but we're playing, - so do nothing. Next stop will put us where - we need to be. - */ - return false; - } - } - } - - if (jump_to < 0 && (autoreturn & Loop) && get_play_loop()) { - /* don't try to handle loop play when synced to JACK */ - - if (!synced_to_engine()) { - Location *location = _locations->auto_loop_location(); - - if (location) { - jump_to = location->start(); - - if (Config->get_seamless_loop()) { - /* need to get track buffers reloaded */ - set_track_loop (true); - } - } - } - } - - if (jump_to < 0 && (autoreturn & RegionSelectionStart)) { - if (!_object_selection.empty()) { - jump_to = _object_selection.from; - } - } - - if (jump_to < 0 && (autoreturn & LastLocate)) { - jump_to = _last_roll_location; - } - - return jump_to >= 0; -} -#else - bool Session::select_playhead_priority_target (samplepos_t& jump_to) { @@ -1513,8 +1436,6 @@ Session::select_playhead_priority_target (samplepos_t& jump_to) return jump_to >= 0; } -#endif - void Session::follow_playhead_priority () { |