diff --git a/source/backend/plugin/CarlaPluginJuce.cpp b/source/backend/plugin/CarlaPluginJuce.cpp index 0b01e3361..46db3345f 100644 --- a/source/backend/plugin/CarlaPluginJuce.cpp +++ b/source/backend/plugin/CarlaPluginJuce.cpp @@ -503,9 +503,9 @@ public: ? (AEffect*)fInstance->getPlatformSpecificData() : nullptr; - v3_plugin_view** const vst3view = /*fDesc.pluginFormatName == "VST3" + v3_plugin_view** const vst3view = fDesc.pluginFormatName == "VST3" ? (v3_plugin_view**)editor->getPlatformSpecificData() - :*/ nullptr; + : nullptr; fWindow = new JucePluginWindow(opts.frontendWinId, opts.pluginsAreStandalone, vst2effect, vst3view); diff --git a/source/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp b/source/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp index f67548279..007597914 100644 --- a/source/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp +++ b/source/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp @@ -1479,6 +1479,12 @@ struct VST3PluginWindow : public AudioProcessorEditor, view = nullptr; } + // FIXME + void* getPlatformSpecificData() override + { + return view; + } + #if JUCE_LINUX || JUCE_BSD Steinberg::tresult PLUGIN_API queryInterface (const Steinberg::TUID queryIid, void** obj) override { diff --git a/source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.cpp b/source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.cpp index cb6f1ce60..a66954944 100644 --- a/source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.cpp +++ b/source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.cpp @@ -46,6 +46,9 @@ AudioProcessorEditor::~AudioProcessorEditor() removeComponentListener (resizeListener.get()); } +// FIXME +void* AudioProcessorEditor::getPlatformSpecificData() { return nullptr; } + void AudioProcessorEditor::setControlHighlight (ParameterControlHighlightInfo) {} int AudioProcessorEditor::getControlParameterIndex (Component&) { return -1; } diff --git a/source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.h b/source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.h index af1805ac3..ba71788d8 100644 --- a/source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.h +++ b/source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.h @@ -50,6 +50,9 @@ protected: AudioProcessorEditor (AudioProcessor*) noexcept; public: + // FIXME + virtual void* getPlatformSpecificData(); + /** Destructor. */ ~AudioProcessorEditor() override;