diff options
-rw-r--r-- | libs/distrho/src/DistrhoPluginLV2.cpp | 1 | ||||
-rw-r--r-- | libs/distrho/src/DistrhoUILV2.cpp | 4 |
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 } // ------------------------------------------------------------------- |