summaryrefslogtreecommitdiff
path: root/gtk2_ardour/gain_meter.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-03-12 17:49:33 +0100
committerRobin Gareus <robin@gareus.org>2020-03-12 18:44:30 +0100
commit64ddc5dd3279cd8f06d020f0742cc38096ff1830 (patch)
tree3bf4ae5e1b8dfa7aefae019f69ca7c47a2160a12 /gtk2_ardour/gain_meter.cc
parent5b113c9c5b510abb3f619a7e82441f9f17379181 (diff)
Fix setting automation state for Aux-sends
When switching the Mixer to show sends, using _amp as intermediate for automation is not correct. The control is not owned by the amp. The same is true for VCAs, prefer the control (see 8400ebd175e0)
Diffstat (limited to 'gtk2_ardour/gain_meter.cc')
-rw-r--r--gtk2_ardour/gain_meter.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk2_ardour/gain_meter.cc b/gtk2_ardour/gain_meter.cc
index 4196409692..6eaceba754 100644
--- a/gtk2_ardour/gain_meter.cc
+++ b/gtk2_ardour/gain_meter.cc
@@ -305,9 +305,7 @@ GainMeterBase::set_gain_astate (AutoState as)
ChangeGainAutomationState (as);
return;
}
- if (_amp) {
- _amp->set_parameter_automation_state (Evoral::Parameter (GainAutomation), as);
- } else if (_control) {
+ if (_control) {
_control->set_automation_state (as);
_session->set_dirty ();
}