diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-15 20:36:31 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-16 00:51:20 +0200 |
commit | b3dc75fed3180d7265f099e0a715a6f0d678d8db (patch) | |
tree | 34d277421b208accd590fe85964d22fbc3ff820e | |
parent | 36c708c4654053b9b15c800cea1a0bea28762743 (diff) |
Prepare for removal of Advanced Session Options (BusProfile)
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 30 | ||||
-rw-r--r-- | gtk2_ardour/ardour_ui.h | 2 | ||||
-rw-r--r-- | tools/luadevel/luasession.cc | 4 |
3 files changed, 4 insertions, 32 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index c313813489..3425ab1bb1 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -3285,13 +3285,7 @@ ARDOUR_UI::build_session_from_dialog (SessionDialog& sd, const std::string& sess BusProfile bus_profile; if (nsm) { - bus_profile.master_out_channels = 2; - bus_profile.input_ac = AutoConnectPhysical; - bus_profile.output_ac = AutoConnectMaster; - bus_profile.requested_physical_in = 0; // use all available - bus_profile.requested_physical_out = 0; // use all available - } else { /* get settings from advanced section of NSD */ @@ -3302,27 +3296,9 @@ ARDOUR_UI::build_session_from_dialog (SessionDialog& sd, const std::string& sess bus_profile.master_out_channels = 0; } - if (sd.connect_inputs()) { - bus_profile.input_ac = AutoConnectPhysical; - } else { - bus_profile.input_ac = AutoConnectOption (0); - } - - bus_profile.output_ac = AutoConnectOption (0); - - if (sd.connect_outputs ()) { - if (sd.connect_outs_to_master()) { - bus_profile.output_ac = AutoConnectMaster; - } else if (sd.connect_outs_to_physical()) { - bus_profile.output_ac = AutoConnectPhysical; - } - } - - bus_profile.requested_physical_in = (uint32_t) sd.input_limit_count(); - bus_profile.requested_physical_out = (uint32_t) sd.output_limit_count(); } - if (build_session (session_path, session_name, bus_profile)) { + if (build_session (session_path, session_name, &bus_profile)) { return -1; } @@ -3846,7 +3822,7 @@ ARDOUR_UI::load_session (const std::string& path, const std::string& snap_name, } int -ARDOUR_UI::build_session (const std::string& path, const std::string& snap_name, BusProfile& bus_profile) +ARDOUR_UI::build_session (const std::string& path, const std::string& snap_name, BusProfile* bus_profile) { Session *new_session; int x; @@ -3863,7 +3839,7 @@ ARDOUR_UI::build_session (const std::string& path, const std::string& snap_name, _session_is_new = true; try { - new_session = new Session (*AudioEngine::instance(), path, snap_name, &bus_profile); + new_session = new Session (*AudioEngine::instance(), path, snap_name, bus_profile); } catch (SessionException e) { diff --git a/gtk2_ardour/ardour_ui.h b/gtk2_ardour/ardour_ui.h index e85135bf40..bc63d79d80 100644 --- a/gtk2_ardour/ardour_ui.h +++ b/gtk2_ardour/ardour_ui.h @@ -187,7 +187,7 @@ public: int load_session (const std::string& path, const std::string& snapshot, std::string mix_template = std::string()); bool session_loaded; bool session_load_in_progress; - int build_session (const std::string& path, const std::string& snapshot, ARDOUR::BusProfile&); + int build_session (const std::string& path, const std::string& snapshot, ARDOUR::BusProfile*); bool session_is_new() const { return _session_is_new; } ARDOUR::Session* the_session() { return _session; } diff --git a/tools/luadevel/luasession.cc b/tools/luadevel/luasession.cc index 8de3636070..c6977529c0 100644 --- a/tools/luadevel/luasession.cc +++ b/tools/luadevel/luasession.cc @@ -221,10 +221,6 @@ static Session * _create_session (string dir, string state, uint32_t rate) // th // TODO add option/bindings for this BusProfile bus_profile; bus_profile.master_out_channels = 2; - bus_profile.input_ac = AutoConnectPhysical; - bus_profile.output_ac = AutoConnectMaster; - bus_profile.requested_physical_in = 0; // use all available - bus_profile.requested_physical_out = 0; // use all available AudioEngine* engine = AudioEngine::instance (); Session* session = new Session (*engine, dir, state, &bus_profile); |