Browse Source

Fix build without UI

pull/20/merge
falkTX 8 years ago
parent
commit
6a764d3f88
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      distrho/src/DistrhoPluginJack.cpp

+ 4
- 0
distrho/src/DistrhoPluginJack.cpp View File

@@ -157,7 +157,9 @@ public:
else else
{ {
fLastOutputValues = nullptr; fLastOutputValues = nullptr;
#if DISTRHO_PLUGIN_HAS_UI
fParametersChanged = nullptr; fParametersChanged = nullptr;
#endif
} }


jack_set_buffer_size_callback(fClient, jackBufferSizeCallback, this); jack_set_buffer_size_callback(fClient, jackBufferSizeCallback, this);
@@ -358,7 +360,9 @@ protected:
const float scaled = static_cast<float>(value)/127.0f; const float scaled = static_cast<float>(value)/127.0f;
const float fvalue = fPlugin.getParameterRanges(j).getUnnormalizedValue(scaled); const float fvalue = fPlugin.getParameterRanges(j).getUnnormalizedValue(scaled);
fPlugin.setParameterValue(j, fvalue); fPlugin.setParameterValue(j, fvalue);
#if DISTRHO_PLUGIN_HAS_UI
fParametersChanged[j] = true; fParametersChanged[j] = true;
#endif
break; break;
} }
} }


Loading…
Cancel
Save