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 6a8d2af038..79fe48726b 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp @@ -571,10 +571,7 @@ public: host that we want midi. In the SDK this method is marked as deprecated, but some hosts rely on this behaviour. */ - bool plugCanDoMidi = (hostCallback != nullptr && hostCallback (&vstEffect, hostOpcodeCanHostDo, 0, 0, - const_cast ("receiveVstMidiEvent"), 0)); - - if (vstEffect.flags & vstEffectFlagIsSynth || plugCanDoMidi) + if (vstEffect.flags & vstEffectFlagIsSynth || JucePlugin_WantsMidiInput) { if (hostCallback != nullptr) hostCallback (&vstEffect, hostOpcodePlugInWantsMidi, 0, 1, 0, 0);