change master records in GainControl to use AutomationControl
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 9 Mar 2016 03:09:43 +0000 (22:09 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 31 May 2016 19:30:40 +0000 (15:30 -0400)
The first step of generalizing master/slave to other controls

libs/ardour/ardour/gain_control.h

index 2b472dc8e00887d3f46d8f3f20cd0849ae51e0b2..e565dd33c93708d342cb18f0df62d4f32627b96a 100644 (file)
@@ -70,19 +70,19 @@ class LIBARDOUR_API GainControl : public AutomationControl {
   private:
        class MasterRecord {
           public:
-               MasterRecord (boost::shared_ptr<GainControl> gc, double r)
+               MasterRecord (boost::shared_ptr<AutomationControl> gc, double r)
                        : _master (gc)
                        , _ratio (r)
                {}
 
-               boost::shared_ptr<GainControl> master() const { return _master; }
+               boost::shared_ptr<AutomationControl> master() const { return _master; }
                double ratio () const { return _ratio; }
                void reset_ratio (double r) { _ratio = r; }
 
                PBD::ScopedConnection connection;
 
          private:
-               boost::shared_ptr<GainControl> _master;
+               boost::shared_ptr<AutomationControl> _master;
                double _ratio;
 
        };