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/return.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/return.cc')
-rw-r--r-- | libs/ardour/return.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/ardour/return.cc b/libs/ardour/return.cc index 4f9e8b958a..d9c9e21a98 100644 --- a/libs/ardour/return.cc +++ b/libs/ardour/return.cc @@ -49,7 +49,11 @@ Return::Return (Session& s, bool internal) { /* never muted */ - _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, X_("Fader"), _gain_control, true)); _meter.reset (new PeakMeter (_session, name())); } @@ -159,4 +163,3 @@ Return::configure_io (ChanCount in, ChanCount out) return true; } - |