13
0

tweak previous commit to make desc.max_unbound "more correct"

This commit is contained in:
Paul Davis 2017-01-09 12:29:04 +00:00
parent ad97a069d9
commit 8e9851e527

View File

@ -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 */
}
}