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:
parent
804448b78b
commit
262357f091
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue