1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-15 00:24:19 +00:00

Fixed VSTs erroneously wanting midi input

This commit is contained in:
tpoole 2016-08-23 23:24:41 +01:00
parent 1ddd394291
commit ddb879663b

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