commit 8773ce84804e053b5ae80e273e0f51e3ef283d91 parent 7bb15cd6c7433fd6483891120ac9fcc3e816e6e1 Author: falkTX <falktx@gmail.com> Date: Wed, 27 Jul 2016 11:15:32 +0200 Don't allow to mix LADSPA_HINT_TOGGLED with other hints. Fix needed for non-mixer Diffstat:
M | distrho/src/DistrhoPluginLADSPA+DSSI.cpp | | | 13 | +++++++++---- |
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/distrho/src/DistrhoPluginLADSPA+DSSI.cpp b/distrho/src/DistrhoPluginLADSPA+DSSI.cpp @@ -613,11 +613,16 @@ public: const uint32_t hints(plugin.getParameterHints(i)); if (hints & kParameterIsBoolean) + { portRangeHints[port].HintDescriptor |= LADSPA_HINT_TOGGLED; - if (hints & kParameterIsInteger) - portRangeHints[port].HintDescriptor |= LADSPA_HINT_INTEGER; - if (hints & kParameterIsLogarithmic) - portRangeHints[port].HintDescriptor |= LADSPA_HINT_LOGARITHMIC; + } + else + { + if (hints & kParameterIsInteger) + portRangeHints[port].HintDescriptor |= LADSPA_HINT_INTEGER; + if (hints & kParameterIsLogarithmic) + portRangeHints[port].HintDescriptor |= LADSPA_HINT_LOGARITHMIC; + } } }