diff options
author | Robin Gareus <robin@gareus.org> | 2017-06-19 12:40:51 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-06-21 18:12:20 +0200 |
commit | cb48bb0e1ccdd8a8324e53e716b2058c2ef3c297 (patch) | |
tree | 263fbe26a08147af1b6cbcfa20322533ec786247 /libs/ardour/ladspa_plugin.cc | |
parent | 555fcb89e541a8aaf1beb3df234e60569a667876 (diff) |
remove min/max unbound -- LADSPA special case.
This explicit case should never have existed in the first place.
Plugins can always implicitly exceed the range and are expected to
cope with out-of-range values (e.g. meters when fed with a peaking signal
may return an out-of-bounds value)
Diffstat (limited to 'libs/ardour/ladspa_plugin.cc')
-rw-r--r-- | libs/ardour/ladspa_plugin.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libs/ardour/ladspa_plugin.cc b/libs/ardour/ladspa_plugin.cc index f2bfe530e0..744293804f 100644 --- a/libs/ardour/ladspa_plugin.cc +++ b/libs/ardour/ladspa_plugin.cc @@ -469,20 +469,17 @@ LadspaPlugin::get_parameter_descriptor (uint32_t which, ParameterDescriptor& des if (LADSPA_IS_HINT_BOUNDED_BELOW(prh.HintDescriptor)) { - desc.min_unbound = false; if (LADSPA_IS_HINT_SAMPLE_RATE(prh.HintDescriptor)) { desc.lower = prh.LowerBound * _session.frame_rate(); } else { desc.lower = prh.LowerBound; } } else { - desc.min_unbound = true; desc.lower = 0; } if (LADSPA_IS_HINT_BOUNDED_ABOVE(prh.HintDescriptor)) { - desc.max_unbound = false; if (LADSPA_IS_HINT_SAMPLE_RATE(prh.HintDescriptor)) { desc.upper = prh.UpperBound * _session.frame_rate(); } else { @@ -490,10 +487,8 @@ LadspaPlugin::get_parameter_descriptor (uint32_t which, ParameterDescriptor& des } } else { if (LADSPA_IS_HINT_TOGGLED (prh.HintDescriptor)) { - desc.max_unbound = false; desc.upper = 1; } else { - desc.max_unbound = true; desc.upper = 4; /* completely arbitrary */ } } |