summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorfalkTX <falktx@gmail.com>2014-04-25 17:35:25 +0100
committerfalkTX <falktx@gmail.com>2014-04-25 17:35:25 +0100
commit28e786d97a96c02120f80593e6c3a79bc0426820 (patch)
tree745f351dcc1c04dece9a36ee4a3ae14377fa5239 /libs
parentbc4c5cfa53b543e88368ae478436e862b34057e2 (diff)
Fix build
Diffstat (limited to 'libs')
-rw-r--r--libs/distrho/src/DistrhoPluginLV2.cpp1
-rw-r--r--libs/distrho/src/DistrhoUILV2.cpp4
2 files changed, 5 insertions, 0 deletions
diff --git a/libs/distrho/src/DistrhoPluginLV2.cpp b/libs/distrho/src/DistrhoPluginLV2.cpp
index 0e359c1..8bd690c 100644
--- a/libs/distrho/src/DistrhoPluginLV2.cpp
+++ b/libs/distrho/src/DistrhoPluginLV2.cpp
@@ -34,6 +34,7 @@
#endif
#include <map>
+#include <string>
#ifndef DISTRHO_PLUGIN_URI
# error DISTRHO_PLUGIN_URI undefined!
diff --git a/libs/distrho/src/DistrhoUILV2.cpp b/libs/distrho/src/DistrhoUILV2.cpp
index 1c8f4f3..51fcf5e 100644
--- a/libs/distrho/src/DistrhoUILV2.cpp
+++ b/libs/distrho/src/DistrhoUILV2.cpp
@@ -46,8 +46,10 @@ public:
{
fUiResize->ui_resize(fUiResize->handle, fUI.getWidth(), fUI.getHeight());
+#if DISTRHO_PLUGIN_WANT_STATE
// tell the DSP we're ready to receive msgs
setState("__dpf_ui_data__", "");
+#endif
}
// -------------------------------------------------------------------
@@ -66,6 +68,7 @@ public:
const float value(*(const float*)buffer);
fUI.parameterChanged(rindex-parameterOffset, value);
}
+#if DISTRHO_PLUGIN_WANT_STATE
else if (format == fEventTransferURID)
{
const LV2_Atom* const atom((const LV2_Atom*)buffer);
@@ -75,6 +78,7 @@ public:
d_stdout("Got MSG in UI from DSP ==> %s | %s", stateKey, stateValue);
fUI.stateChanged(stateKey, stateValue);
}
+#endif
}
// -------------------------------------------------------------------