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:
parent
1ddd394291
commit
ddb879663b
1 changed files with 1 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue