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/route.cc | |
parent | 13c874d8b071e4d1d540ec7da2d76856ef228918 (diff) |
goodbye USE_TRACKS_CODE_FEATURES and is_tracks_build
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index f378d1145d..84bd5706d7 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -5975,65 +5975,6 @@ Route::set_loop (Location* l) } } -#ifdef USE_TRACKS_CODE_FEATURES - -/* This is the Tracks version of Track::monitoring_state(). - * - * Ardour developers: try to flag or fix issues if parts of the libardour API - * change in ways that invalidate this - */ - -MonitorState -Route::monitoring_state () const -{ - /* Explicit requests */ - - if (_monitoring != MonitorInput) { - return MonitoringInput; - } - - if (_monitoring & MonitorDisk) { - return MonitoringDisk; - } - - /* This is an implementation of the truth table in doc/monitor_modes.pdf; - I don't think it's ever going to be too pretty too look at. - */ - - // GZ: NOT USED IN TRACKS - //bool const auto_input = _session.config.get_auto_input (); - //bool const software_monitor = Config->get_monitoring_model() == SoftwareMonitoring; - //bool const tape_machine_mode = Config->get_tape_machine_mode (); - - bool const roll = _session.transport_rolling (); - bool const track_rec = _diskstream->record_enabled (); - bool session_rec = _session.actively_recording (); - - if (track_rec) { - - if (!session_rec && roll) { - return MonitoringDisk; - } else { - return MonitoringInput; - } - - } else { - - if (roll) { - return MonitoringDisk; - } - } - - return MonitoringSilence; -} - -#else - -/* This is the Ardour/Mixbus version of Track::monitoring_state(). - * - * Tracks developers: do NOT modify this method under any circumstances. - */ - MonitorState Route::monitoring_state () const { @@ -6072,4 +6013,3 @@ Route::monitoring_state () const return get_auto_monitoring_state(); } -#endif |