diff --git a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp index 28c0915f4d..61ac634f4f 100644 --- a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp @@ -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." */