diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-06-19 23:02:55 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-06-19 23:02:55 +0000 |
commit | d5e09076ca69fda1402a12e383de7a7d9bc5f0ec (patch) | |
tree | 0d4df7147098ea57e58d96efb82f57dd5545023c /gtk2_ardour/volume_controller.h | |
parent | 182b23e744d79b3387a779ea25010924daffe6af (diff) |
much ado about nothing when it comes to gain control
git-svn-id: svn://localhost/ardour2/branches/3.0@9748 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/volume_controller.h')
-rw-r--r-- | gtk2_ardour/volume_controller.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk2_ardour/volume_controller.h b/gtk2_ardour/volume_controller.h index 8693f5f0da..28877b7987 100644 --- a/gtk2_ardour/volume_controller.h +++ b/gtk2_ardour/volume_controller.h @@ -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); }; |