From 2cceff13cbfea67a268f00f09ace704b52b9dd91 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 11 Apr 2014 19:17:22 +0100 Subject: [PATCH] fix distrho plugins build without UI --- libs/distrho/src/DistrhoPluginVST.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/distrho/src/DistrhoPluginVST.cpp b/libs/distrho/src/DistrhoPluginVST.cpp index 98a17a96..e1fe00b7 100644 --- a/libs/distrho/src/DistrhoPluginVST.cpp +++ b/libs/distrho/src/DistrhoPluginVST.cpp @@ -723,18 +723,22 @@ private: // ------------------------------------------------------------------- // functions called from the plugin side, RT no block +#if DISTRHO_PLUGIN_HAS_UI void setParameterValueFromPlugin(const uint32_t index, const float realValue) { parameterValues[index] = realValue; parameterChecks[index] = true; } +#endif #if DISTRHO_PLUGIN_WANT_PROGRAMS void setProgramFromPlugin(const uint32_t index) { +# if DISTRHO_PLUGIN_HAS_UI // set previous parameters invalid for (uint32_t i=0, count = fPlugin.getParameterCount(); i < count; ++i) parameterChecks[i] = false; +# endif nextProgram = index; }