summaryrefslogtreecommitdiff
path: root/libs/ardour/session_rtevents.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-01-25 15:30:02 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-01-25 15:30:02 +0000
commit9ac351e60ceac28056d5513e3c346346689d11e0 (patch)
tree9d131a56b5a8acf619da9b6b41297fa1cc584322 /libs/ardour/session_rtevents.cc
parentd707fa06b79b9ed46323ebe9010c15b198e4058f (diff)
fix #4405, by explicitly cancelling solo when a route's inputs drop to zero
git-svn-id: svn://localhost/ardour2/branches/3.0@11346 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_rtevents.cc')
-rw-r--r--libs/ardour/session_rtevents.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/libs/ardour/session_rtevents.cc b/libs/ardour/session_rtevents.cc
index ca1ee319c7..43d291c458 100644
--- a/libs/ardour/session_rtevents.cc
+++ b/libs/ardour/session_rtevents.cc
@@ -72,6 +72,26 @@ Session::rt_set_solo (boost::shared_ptr<RouteList> rl, bool yn, bool /* group_ov
}
void
+Session::cancel_solo_after_disconnect (boost::shared_ptr<Route> r, SessionEvent::RTeventCallback after)
+{
+ boost::shared_ptr<RouteList> rl (new RouteList);
+ rl->push_back (r);
+
+ queue_event (get_rt_event (rl, false, after, false, &Session::rt_cancel_solo_after_disconnect));
+}
+
+void
+Session::rt_cancel_solo_after_disconnect (boost::shared_ptr<RouteList> rl, bool /*yn */, bool /* group_override */)
+{
+ for (RouteList::iterator i = rl->begin(); i != rl->end(); ++i) {
+ if (!(*i)->is_hidden()) {
+ (*i)->cancel_solo_after_disconnect ();
+ }
+ }
+ /* no need to call set-dirty - the disconnect will already have done that */
+}
+
+void
Session::set_just_one_solo (boost::shared_ptr<Route> r, bool yn, SessionEvent::RTeventCallback after)
{
/* its a bit silly to have to do this, but it keeps the API for this public method sane (we're