summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-01-09 12:29:04 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2017-01-09 12:29:04 +0000
commit8e9851e5272f3f8e12feed260c084573fd3c832b (patch)
tree2478083efc225b6f41b1362672a3153a182fb899 /libs
parentad97a069d93febff105b3d473e167c21fd6a1602 (diff)
tweak previous commit to make desc.max_unbound "more correct"
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/ladspa_plugin.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/ladspa_plugin.cc b/libs/ardour/ladspa_plugin.cc
index d8b69c2716..b5106cb4ca 100644
--- a/libs/ardour/ladspa_plugin.cc
+++ b/libs/ardour/ladspa_plugin.cc
@@ -497,10 +497,11 @@ LadspaPlugin::get_parameter_descriptor (uint32_t which, ParameterDescriptor& des
desc.upper = prh.UpperBound;
}
} else {
- desc.max_unbound = true;
if (LADSPA_IS_HINT_TOGGLED (prh.HintDescriptor)) {
+ desc.max_unbound = false;
desc.upper = 1;
} else {
+ desc.max_unbound = true;
desc.upper = 4; /* completely arbitrary */
}
}