summaryrefslogtreecommitdiff
path: root/libs/ardour/session.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-04-20 00:34:36 +0200
committerRobin Gareus <robin@gareus.org>2020-04-20 00:34:36 +0200
commit3f7de5ec8eb37a996a4a9440d6cfeee49cf0ad4e (patch)
treecb96181c68d18e22bc10f5855a6302a65c795f6a /libs/ardour/session.cc
parent498a58bd25133f61b7306052844187b94a69cf15 (diff)
Do not add monitor-sends to foldback busses
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r--libs/ardour/session.cc20
1 files changed, 3 insertions, 17 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc
index b6d70db727..4c343bfba2 100644
--- a/libs/ardour/session.cc
+++ b/libs/ardour/session.cc
@@ -1140,12 +1140,7 @@ Session::add_monitor_section ()
ProcessorChangeBlocker pcb (this, false /* XXX */);
for (RouteList::iterator x = rls->begin(); x != rls->end(); ++x) {
-
- if ((*x)->is_monitor()) {
- /* relax */
- } else if ((*x)->is_master()) {
- /* relax */
- } else {
+ if ((*x)->can_solo ()) {
(*x)->enable_monitor_send ();
}
}
@@ -1265,12 +1260,7 @@ Session::reset_monitor_section ()
ProcessorChangeBlocker pcb (this, false);
for (RouteList::iterator x = rls->begin(); x != rls->end(); ++x) {
-
- if ((*x)->is_monitor()) {
- /* relax */
- } else if ((*x)->is_master()) {
- /* relax */
- } else {
+ if ((*x)->can_solo ()) {
(*x)->enable_monitor_send ();
}
}
@@ -3284,11 +3274,7 @@ Session::add_routes_inner (RouteList& new_routes, bool input_auto_connect, bool
Glib::Threads::Mutex::Lock lm (_engine.process_lock());
for (RouteList::iterator x = new_routes.begin(); x != new_routes.end(); ++x) {
- if ((*x)->is_monitor()) {
- /* relax */
- } else if ((*x)->is_master()) {
- /* relax */
- } else {
+ if ((*x)->can_solo ()) {
(*x)->enable_monitor_send ();
}
}