summaryrefslogtreecommitdiff
path: root/libs/ardour/session_rtevents.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-12-18 02:25:17 -0500
committerDavid Robillard <d@drobilla.net>2014-12-18 02:26:51 -0500
commite584ae0bf94673bf719e661c49e8a2f2d2dd0346 (patch)
tree6fe13dbc9fa5a5d765f8492ef879995fa9de5f54 /libs/ardour/session_rtevents.cc
parentd36b5c78bdb4cbb19d2817c86cd0e3c5cd899fe4 (diff)
Mute automation via normal mute button.
Diffstat (limited to 'libs/ardour/session_rtevents.cc')
-rw-r--r--libs/ardour/session_rtevents.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/session_rtevents.cc b/libs/ardour/session_rtevents.cc
index 6328607eec..4bd7c2da9a 100644
--- a/libs/ardour/session_rtevents.cc
+++ b/libs/ardour/session_rtevents.cc
@@ -143,6 +143,12 @@ Session::rt_set_listen (boost::shared_ptr<RouteList> rl, bool yn, bool /*group_o
void
Session::set_mute (boost::shared_ptr<RouteList> rl, bool yn, SessionEvent::RTeventCallback after, bool group_override)
{
+ /* Set superficial value of mute controls for automation. */
+ for (RouteList::iterator i = rl->begin(); i != rl->end(); ++i) {
+ boost::shared_ptr<Route::MuteControllable> mc = (*i)->mute_control();
+ mc->set_superficial_value(yn);
+ }
+
queue_event (get_rt_event (rl, yn, after, group_override, &Session::rt_set_mute));
}