Browse Source

Don't use juce for handling VSTs in linux, it's broken

Use our own code instead
tags/1.9.4
falkTX 10 years ago
parent
commit
ff525995bc
2 changed files with 13 additions and 3 deletions
  1. +7
    -1
      source/backend/plugin/VstPlugin.cpp
  2. +6
    -2
      source/modules/juce_audio_processors/AppConfig.h

+ 7
- 1
source/backend/plugin/VstPlugin.cpp View File

@@ -18,6 +18,12 @@
#include "CarlaPluginInternal.hpp"
#include "CarlaEngine.hpp"

#if defined(CARLA_OS_LINUX) || defined(VESTIGE_HEADER)
# define USE_JUCE_FOR_VST 0
#else
# define USE_JUCE_FOR_VST 1
#endif

#ifdef WANT_VST

#include "CarlaVstUtils.hpp"
@@ -2456,7 +2462,7 @@ CarlaPlugin* CarlaPlugin::newVST(const Initializer& init)
carla_debug("CarlaPlugin::newVST({%p, \"%s\", \"%s\"})", init.engine, init.filename, init.name);

#ifdef WANT_VST
# if 1 //defined(HAVE_JUCE) && ! defined(VESTIGE_HEADER)
# if defined(HAVE_JUCE) && USE_JUCE_FOR_VST
return newJuce(init, "VST");
# else
VstPlugin* const plugin(new VstPlugin(init.engine, init.id));


+ 6
- 2
source/modules/juce_audio_processors/AppConfig.h View File

@@ -19,13 +19,17 @@
@see VSTPluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_AU
*/
#define JUCE_PLUGINHOST_VST 1
#ifndef VESTIGE_HEADER
# define JUCE_PLUGINHOST_VST 1
#else
# define JUCE_PLUGINHOST_VST 0
#endif
/** Config: JUCE_PLUGINHOST_VST3
Enables the VST3 audio plugin hosting classes. This requires the Steinberg VST3 SDK to be
installed on your machine.
@see VSTPluginFormat, VVST3PluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_VST, JUCE_PLUGINHOST_AU
@see VSTPluginFormat, VST3PluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_VST, JUCE_PLUGINHOST_AU
*/
#if defined(JUCE_WINDOW) || defined(JUCE_MAC)
# define JUCE_PLUGINHOST_VST3 1


Loading…
Cancel
Save