Browse Source

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

tags/2021-05-28
hogliux 7 years ago
parent
commit
262357f091
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp

+ 2
- 2
modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp 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." */


Loading…
Cancel
Save