diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-06-21 01:36:20 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-06-21 01:36:20 +0000 |
commit | 500aaa0deeb386df94fddc4474aa6de43331becb (patch) | |
tree | 50728fe9dc4b22305af816cb1ff80e5c2cc22255 /libs/ardour/utils.cc | |
parent | 4a81c71e970ad91a6e0628e0ffd510d585c938b5 (diff) |
an entire freakin' day working on 1 working function, VolumeController::adjust() ... probably not done, but better ... gain control that occurs via this function occurs in discrete, fixed dB steps
git-svn-id: svn://localhost/ardour2/branches/3.0@9752 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/utils.cc')
-rw-r--r-- | libs/ardour/utils.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc index 4175322bb6..e1cd35398b 100644 --- a/libs/ardour/utils.cc +++ b/libs/ardour/utils.cc @@ -674,14 +674,12 @@ how_many_dsp_threads () double gain_to_slider_position_with_max (double g, double max_gain) { - /* max gain is ignored for now */ - return gain_to_slider_position (g); + return gain_to_slider_position (g * 2.0/max_gain); } double slider_position_to_gain_with_max (double g, double max_gain) { - /* max gain is ignored for now */ - return slider_position_to_gain (g); + return slider_position_to_gain (g * max_gain/2.0); } extern "C" { |