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/send.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/send.cc')
-rw-r--r-- | libs/ardour/send.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ardour/send.cc b/libs/ardour/send.cc index ec86686bef..771473e065 100644 --- a/libs/ardour/send.cc +++ b/libs/ardour/send.cc @@ -86,13 +86,15 @@ Send::Send (Session& s, boost::shared_ptr<Pannable> p, boost::shared_ptr<MuteMas //boost_debug_shared_ptr_mark_interesting (this, "send"); - _amp.reset (new Amp (_session)); + boost::shared_ptr<AutomationList> gl (new AutomationList (Evoral::Parameter (GainAutomation))); + _gain_control = boost::shared_ptr<Amp::GainControl> (new Amp::GainControl (_session, Evoral::Parameter(GainAutomation), gl)); + add_control (_gain_control); + + _amp.reset (new Amp (_session, _("Fader"), _gain_control, true)); _meter.reset (new PeakMeter (_session, name())); _delayline.reset (new DelayLine (_session, name())); - add_control (_amp->gain_control ()); - if (panner_shell()) { panner_shell()->Changed.connect_same_thread (*this, boost::bind (&Send::panshell_changed, this)); } @@ -400,5 +402,3 @@ Send::value_as_string (boost::shared_ptr<AutomationControl> ac) const { return _amp->value_as_string (ac); } - - |