Browse Source

carla-bridge: always init juce gui, even on linux

tags/1.9.8
falkTX 7 years ago
parent
commit
a0ecef12d5
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      source/bridges-plugin/CarlaBridgePlugin.cpp

+ 3
- 3
source/bridges-plugin/CarlaBridgePlugin.cpp View File

@@ -38,8 +38,9 @@
# include "juce_gui_basics/juce_gui_basics.h" # include "juce_gui_basics/juce_gui_basics.h"
using juce::JUCEApplication; using juce::JUCEApplication;
using juce::JUCEApplicationBase; using juce::JUCEApplicationBase;
using juce::ScopedJuceInitialiser_GUI;
using juce::Timer; using juce::Timer;
#else
# include "juce_events/juce_events.h"
#endif #endif


using CarlaBackend::CarlaEngine; using CarlaBackend::CarlaEngine;
@@ -48,6 +49,7 @@ using CarlaBackend::EngineCallbackOpcode2Str;


using juce::CharPointer_UTF8; using juce::CharPointer_UTF8;
using juce::File; using juce::File;
using juce::ScopedJuceInitialiser_GUI;
using juce::String; using juce::String;


// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
@@ -269,9 +271,7 @@ private:
const CarlaEngine* fEngine; const CarlaEngine* fEngine;
bool fUsingBridge; bool fUsingBridge;


#if defined(CARLA_OS_MAC) || defined(CARLA_OS_WIN)
const ScopedJuceInitialiser_GUI kJuceInitialiser; const ScopedJuceInitialiser_GUI kJuceInitialiser;
#endif


static void callback(void* ptr, EngineCallbackOpcode action, unsigned int pluginId, int value1, int value2, float value3, const char* valueStr) static void callback(void* ptr, EngineCallbackOpcode action, unsigned int pluginId, int value1, int value2, float value3, const char* valueStr)
{ {


Loading…
Cancel
Save