Browse Source

Hacky juce test code for investigating vst3 keyboard input

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.5.0
falkTX 2 years ago
parent
commit
5268e39c77
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 14 additions and 2 deletions
  1. +2
    -2
      source/backend/plugin/CarlaPluginJuce.cpp
  2. +6
    -0
      source/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp
  3. +3
    -0
      source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.cpp
  4. +3
    -0
      source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.h

+ 2
- 2
source/backend/plugin/CarlaPluginJuce.cpp View File

@@ -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);


+ 6
- 0
source/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp View File

@@ -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
{


+ 3
- 0
source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.cpp View File

@@ -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; }


+ 3
- 0
source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.h View File

@@ -50,6 +50,9 @@ protected:
AudioProcessorEditor (AudioProcessor*) noexcept;
public:
// FIXME
virtual void* getPlatformSpecificData();
/** Destructor. */
~AudioProcessorEditor() override;


Loading…
Cancel
Save