Browse Source

Fix LV2 build with JUCE_AUDIOPROCESSOR_NO_GUI

Signed-off-by: falkTX <falktx@falktx.com>
pull/95/head
falkTX 1 year ago
parent
commit
5749aa9605
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libs/juce-current/source/modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp

+ 4
- 0
libs/juce-current/source/modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp View File

@@ -154,7 +154,9 @@ public:

MessageManager::getInstance()->setCurrentThreadAsMessageThread();

#if ! JUCE_AUDIOPROCESSOR_NO_GUI
XWindowSystem::getInstance();
#endif
initialised = true;

MessageManager::getInstance()->runDispatchLoop();
@@ -1121,7 +1123,9 @@ public:
{
param->setValue (curValue);

#if ! JUCE_AUDIOPROCESSOR_NO_GUI
inParameterChangedCallback = true;
#endif
param->sendValueChangedMessageToListeners (curValue);
}
lastControlValues.setUnchecked (i, curValue);


Loading…
Cancel
Save