mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 12:45:45 +01:00
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:
parent
0006b50cec
commit
ad97a069d9
1 changed files with 5 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue