summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorfalkTX <falktx@gmail.com>2014-04-11 19:14:57 +0100
committerfalkTX <falktx@gmail.com>2014-04-11 19:14:57 +0100
commit5e9fb7fbf27f8c40c0dee414805371be4969771c (patch)
treec4bc7e3c0c9fc77778eca6bb48926949421bcd42 /libs
parent58e3e2785523f8a43e1c5dfa1ce67fcee1da8017 (diff)
Build all plugins without UI; Other minor changes
Diffstat (limited to 'libs')
-rw-r--r--libs/distrho/src/DistrhoPluginVST.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/distrho/src/DistrhoPluginVST.cpp b/libs/distrho/src/DistrhoPluginVST.cpp
index 98a17a9..e1fe00b 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;
}