diff options
Diffstat (limited to 'libs/ardour/automatable.cc')
-rw-r--r-- | libs/ardour/automatable.cc | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/libs/ardour/automatable.cc b/libs/ardour/automatable.cc index 9670f68689..c9d8374db9 100644 --- a/libs/ardour/automatable.cc +++ b/libs/ardour/automatable.cc @@ -449,19 +449,9 @@ Automatable::control_factory(const Evoral::Parameter& param) warning << "PluginPropertyAutomation for non-Plugin" << endl; } } else if (param.type() == GainAutomation) { - Amp* amp = dynamic_cast<Amp*>(this); - if (amp) { - control = new Amp::GainControl(X_("gaincontrol"), _a_session, amp, param); - } else { - warning << "GainAutomation for non-Amp" << endl; - } + control = new Amp::GainControl(_a_session, param); } else if (param.type() == TrimAutomation) { - Amp* amp = dynamic_cast<Amp*>(this); - if (amp) { - control = new Amp::GainControl(X_("trimcontrol"), _a_session, amp, param); - } else { - warning << "TrimAutomation for non-Amp" << endl; - } + control = new Amp::GainControl(_a_session, param); } else if (param.type() == PanAzimuthAutomation || param.type() == PanWidthAutomation || param.type() == PanElevationAutomation) { Pannable* pannable = dynamic_cast<Pannable*>(this); if (pannable) { |