From 9992fcdaeb100364880b8baf29d28199463f8c85 Mon Sep 17 00:00:00 2001 From: Debian Multimedia Maintainers Date: Wed, 23 Oct 2019 09:44:36 +0200 Subject: [PATCH] provide missing VST2 replacement header Last-Update: 2019-01-12 backprted from the original JUCE-5.3.1 header Last-Update: 2019-01-12 Gbp-Pq: Name debian_vst.patch --- modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp | 4 +--- .../format_types/juce_VSTPluginFormat.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp index 7f63093c..b1208b48 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp @@ -101,8 +101,7 @@ namespace Vst2 // field in the Projucer. The VST2 SDK can be obtained from the // vstsdk3610_11_06_2018_build_37 (or older) VST3 SDK or JUCE version 5.3.2. You // also need a VST2 license from Steinberg to distribute VST2 plug-ins. -#include "pluginterfaces/vst2.x/aeffect.h" -#include "pluginterfaces/vst2.x/aeffectx.h" +#include "../../juce_audio_processors/format_types/juce_VSTInterface.h" } using namespace juce; @@ -124,7 +123,6 @@ using namespace juce; #pragma pack (push, 8) #endif -#define JUCE_VSTINTERFACE_H_INCLUDED 1 #include "../utility/juce_IncludeModuleHeaders.h" #include "../utility/juce_FakeMouseMoveGenerator.h" diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index bdc935fc..8ddc9f23 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -49,7 +49,6 @@ #endif #define VST_FORCE_DEPRECATED 0 -#define JUCE_VSTINTERFACE_H_INCLUDED 1 namespace Vst2 { @@ -58,8 +57,7 @@ namespace Vst2 // paths or use the "VST (Legacy) SDK Folder" field in the Projucer. The VST2 // SDK can be obtained from the vstsdk3610_11_06_2018_build_37 (or older) VST3 // SDK or JUCE version 5.3.2. -#include -#include +#include "../../juce_audio_processors/format_types/juce_VSTInterface.h" } #include "juce_VSTCommon.h" @@ -81,6 +79,9 @@ namespace Vst2 #include "juce_VSTMidiEventList.h" +#define resvd2 hostSpace2 +#define nanoSeconds systemTimeNanoseconds + #if JUCE_MINGW #ifndef WM_APPCOMMAND #define WM_APPCOMMAND 0x0319 -- 2.30.2