DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit c2230b5f395a8aba0ab4332da81978c9cf697684
parent e6edae19053fd079ed86c690662a57c4068ac5e6
Author: falkTX <falktx@gmail.com>
Date:   Sun, 15 Feb 2015 10:32:52 +0000

Disable UI if HAVE_DGL is not defined

Diffstat:
Mdistrho/src/DistrhoPluginLV2export.cpp | 5+++++
Mdistrho/src/DistrhoPluginVST.cpp | 7+++++++
2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/distrho/src/DistrhoPluginLV2export.cpp b/distrho/src/DistrhoPluginLV2export.cpp @@ -44,6 +44,11 @@ # define DISTRHO_PLUGIN_MINIMUM_BUFFER_SIZE 2048 #endif +#if DISTRHO_PLUGIN_HAS_UI && ! defined(HAVE_DGL) +# undef DISTRHO_PLUGIN_HAS_UI +# define DISTRHO_PLUGIN_HAS_UI 0 +#endif + #define DISTRHO_LV2_USE_EVENTS_IN (DISTRHO_PLUGIN_HAS_MIDI_INPUT || DISTRHO_PLUGIN_WANT_TIMEPOS || (DISTRHO_PLUGIN_WANT_STATE && DISTRHO_PLUGIN_HAS_UI)) #define DISTRHO_LV2_USE_EVENTS_OUT (DISTRHO_PLUGIN_HAS_MIDI_OUTPUT || (DISTRHO_PLUGIN_WANT_STATE && DISTRHO_PLUGIN_HAS_UI)) diff --git a/distrho/src/DistrhoPluginVST.cpp b/distrho/src/DistrhoPluginVST.cpp @@ -16,6 +16,11 @@ #include "DistrhoPluginInternal.hpp" +#if DISTRHO_PLUGIN_HAS_UI && ! defined(HAVE_DGL) +# undef DISTRHO_PLUGIN_HAS_UI +# define DISTRHO_PLUGIN_HAS_UI 0 +#endif + #if DISTRHO_PLUGIN_HAS_UI # include "DistrhoUIInternal.hpp" #endif @@ -371,8 +376,10 @@ public: case effSetSampleRate: fPlugin.setSampleRate(opt, true); +#if DISTRHO_PLUGIN_HAS_UI if (fVstUI != nullptr) fVstUI->setSampleRate(opt); +#endif break; case effSetBlockSize: