Browse Source

Fixed VSTs erroneously wanting midi input

tags/2021-05-28
tpoole 8 years ago
parent
commit
ddb879663b
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp

+ 1
- 4
modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp View File

@@ -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<char*> ("receiveVstMidiEvent"), 0));
if (vstEffect.flags & vstEffectFlagIsSynth || plugCanDoMidi)
if (vstEffect.flags & vstEffectFlagIsSynth || JucePlugin_WantsMidiInput)
{
if (hostCallback != nullptr)
hostCallback (&vstEffect, hostOpcodePlugInWantsMidi, 0, 1, 0, 0);


Loading…
Cancel
Save