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

VST3 Hosting: Added a more robust way to check if a VST3 plug-in has midi inputs/outputs

This commit is contained in:
hogliux 2017-11-20 17:14:07 +00:00
parent 804448b78b
commit 262357f091

View file

@ -2195,8 +2195,8 @@ struct VST3PluginInstance : public AudioPluginInstance
&& getBusInfo (false, true, busIdx).channelCount == 2;
}
bool acceptsMidi() const override { return getBusInfo (true, false).channelCount > 0; }
bool producesMidi() const override { return getBusInfo (false, false).channelCount > 0; }
bool acceptsMidi() const override { return getNumSingleDirectionBusesFor (holder->component, true, false) > 0; }
bool producesMidi() const override { return getNumSingleDirectionBusesFor (holder->component, false, false) > 0; }
//==============================================================================
/** May return a negative value as a means of informing us that the plugin has "infinite tail," or 0 for "no tail." */