From ddb879663b2abae4080ce28217bc5e76e86b0ebc Mon Sep 17 00:00:00 2001 From: tpoole Date: Tue, 23 Aug 2016 23:24:41 +0100 Subject: [PATCH] Fixed VSTs erroneously wanting midi input --- modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 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 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);