diff options
author | Damien Zammit <damien@zamaudio.com> | 2014-04-26 02:37:38 +1000 |
---|---|---|
committer | Damien Zammit <damien@zamaudio.com> | 2014-04-26 02:37:38 +1000 |
commit | 6c45d61841d471554328d5c8429a442905b87ab6 (patch) | |
tree | 745f351dcc1c04dece9a36ee4a3ae14377fa5239 | |
parent | e44944f0b4164b879119a195b6bc97713b66d07b (diff) | |
parent | 28e786d97a96c02120f80593e6c3a79bc0426820 (diff) |
Merge pull request #10 from falkTX/master
Fix build
-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 } // ------------------------------------------------------------------- |