Browse Source

Don't allow to mix LADSPA_HINT_TOGGLED with other hints.

Fix needed for non-mixer
pull/17/head
falkTX 8 years ago
parent
commit
8773ce8480
1 changed files with 9 additions and 4 deletions
  1. +9
    -4
      distrho/src/DistrhoPluginLADSPA+DSSI.cpp

+ 9
- 4
distrho/src/DistrhoPluginLADSPA+DSSI.cpp View File

@@ -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;
}
}
}



Loading…
Cancel
Save