summaryrefslogtreecommitdiff
path: root/libs/ardour/amp.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-04-13 00:35:42 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-04-13 00:35:42 +0000
commit13699251d95d4d1732c05e37038a675f64e2f63f (patch)
treeeb3bc815f91d70b58b9a38fb4199085fe73dcd5e /libs/ardour/amp.cc
parentd7595f71be052a6dc692053bdf13c06e3c80785f (diff)
convert rec-enable control for a Track from PBD::COntrollable to ARDOUR::AutomatioNControl, and use in MCP
git-svn-id: svn://localhost/ardour2/branches/3.0@11956 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/amp.cc')
-rw-r--r--libs/ardour/amp.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/amp.cc b/libs/ardour/amp.cc
index b74a57dbce..24b2066ed5 100644
--- a/libs/ardour/amp.cc
+++ b/libs/ardour/amp.cc
@@ -47,6 +47,8 @@ Amp::Amp (Session& s)
p.set_range (0, 1.99526231f, 1, false);
boost::shared_ptr<AutomationList> gl (new AutomationList (p));
_gain_control = boost::shared_ptr<GainControl> (new GainControl (X_("gaincontrol"), s, this, p, gl));
+ _gain_control->set_flags (Controllable::GainLike);
+
add_control(_gain_control);
}