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/session.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/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 43883f7fc6..af423af831 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -733,8 +733,12 @@ void Session::setup_click () { _clicking = false; + + boost::shared_ptr<AutomationList> gl (new AutomationList (Evoral::Parameter (GainAutomation))); + boost::shared_ptr<AutomationControl> gain_control = boost::shared_ptr<Amp::GainControl> (new Amp::GainControl (*this, Evoral::Parameter(GainAutomation), gl)); + _click_io.reset (new ClickIO (*this, X_("Click"))); - _click_gain.reset (new Amp (*this)); + _click_gain.reset (new Amp (*this, _("Fader"), gain_control, true)); _click_gain->activate (); if (state_tree) { setup_click_state (state_tree->root()); |