diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-16 00:13:56 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-16 00:51:20 +0200 |
commit | 26c88b2a3ea2dba06197c8f353dfa3af25b342e0 (patch) | |
tree | 9c51a8ff8e92df36e57ba6fddda0eef6e39665cb /gtk2_ardour/ardour_ui.cc | |
parent | 11aa1d60aef92ab3e2b3c8ff14dc66b3ebc69e1c (diff) |
Replace advanced session-setup options with script
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 3425ab1bb1..90c9b9cf29 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -3287,18 +3287,12 @@ ARDOUR_UI::build_session_from_dialog (SessionDialog& sd, const std::string& sess if (nsm) { bus_profile.master_out_channels = 2; } else { - /* get settings from advanced section of NSD */ - - if (sd.create_master_bus()) { - bus_profile.master_out_channels = (uint32_t) sd.master_channel_count(); - } else { - bus_profile.master_out_channels = 0; - } - + bus_profile.master_out_channels = (uint32_t) sd.master_channel_count(); } - if (build_session (session_path, session_name, &bus_profile)) { + // NULL profile: no master, no monitor + if (build_session (session_path, session_name, bus_profile.master_out_channels > 0 ? &bus_profile : NULL)) { return -1; } |