13
0

fix ranges for LADSPA unbounded toggle parameters.

Used to be 0..4, now 0..1. The 4 is still used as an arbitrary
upper bound for non-toggled parameters
This commit is contained in:
Paul Davis 2017-01-09 11:58:39 +00:00
parent 0006b50cec
commit ad97a069d9

View File

@ -498,7 +498,11 @@ LadspaPlugin::get_parameter_descriptor (uint32_t which, ParameterDescriptor& des
}
} else {
desc.max_unbound = true;
desc.upper = 4; /* completely arbitrary */
if (LADSPA_IS_HINT_TOGGLED (prh.HintDescriptor)) {
desc.upper = 1;
} else {
desc.upper = 4; /* completely arbitrary */
}
}
if (LADSPA_IS_HINT_HAS_DEFAULT (prh.HintDescriptor)) {