add partial support for mute automation (playback does not work, data is not recorded in the session)

This commit is contained in:
Paul Davis 2014-07-01 14:36:58 -04:00
parent 1a90d28aed
commit c0118c76a7
9 changed files with 80 additions and 3 deletions

View file

@ -179,6 +179,11 @@ MidiTimeAxisView::set_route (boost::shared_ptr<Route> rt)
create_automation_child (GainAutomation, false);
}
/* if set_state above didn't create a mute automation child, we need to make one */
if (automation_child (MuteAutomation) == 0) {
create_automation_child (MuteAutomation, false);
}
if (_route->panner_shell()) {
_route->panner_shell()->Changed.connect (*this, invalidator (*this), boost::bind (&MidiTimeAxisView::ensure_pan_views, this, false), gui_context());
}
@ -1281,6 +1286,10 @@ MidiTimeAxisView::create_automation_child (const Evoral::Parameter& param, bool
create_gain_automation_child (param, show);
break;
case MuteAutomation:
create_mute_automation_child (param, show);
break;
case PluginAutomation:
/* handled elsewhere */
break;