diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-12 14:09:24 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-18 12:11:08 -0500 |
commit | d1033819bd09d8a46ec602a586ddba0e10f803d6 (patch) | |
tree | 700a2d051b17f9f9b617166a158909b62045cffe /libs/ardour/automatable.cc | |
parent | 19af86ece2d40729348b6ae6cb73d4e370115040 (diff) |
change ownership of the AutomationControl used by Amp.
It used to be owned by Amp. Now it is owned by Amp's owner
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) { |