Relax VAMP version from 2.4 to 2.1
[ardour.git] / gtk2_ardour / volume_controller.h
index 8693f5f0da6cd94dab5aa34ab6780001181e5300..28877b798700e644b168863d463132b8570b9a34 100644 (file)
@@ -35,8 +35,7 @@ class VolumeController : public Gtkmm2ext::MotionFeedback
                          bool with_numeric = true,
                           int image_width = 40,
                           int image_height = 40,
-                         bool linear = true,
-                         bool dB = false);
+                         bool linear = true);
 
         virtual ~VolumeController () {}
 
@@ -45,10 +44,13 @@ class VolumeController : public Gtkmm2ext::MotionFeedback
   protected:
        double to_control_value (double);
        double to_display_value (double);
+       double adjust (double nominal_delta);
+
+       double display_value () const;
+       double control_value () const;
 
   private:
        bool _linear;
-       bool _controllable_uses_dB;
 
        void dB_printer (char buf[32], const boost::shared_ptr<PBD::Controllable>& adj);
 };