Skip VST version check to detect MIDI inputs
Some plugins return 0 from effGetVstVersion and are hence not detected as instruments. e.g. VeeSeeVSTRack (VCV). This may also explain why MIDI port of some other VSTs are not exposed. Most VST2.4 return 2400, so checking [effGetVstVersion] >=2 (and not 2000) was incorrect to begin with.
This commit is contained in:
parent
d9fcab88f0
commit
694c5fcfa6
@ -530,9 +530,6 @@ bool vstfx_midi_input (VSTState* vstfx)
|
||||
{
|
||||
AEffect* plugin = vstfx->plugin;
|
||||
|
||||
int const vst_version = plugin->dispatcher (plugin, effGetVstVersion, 0, 0, 0, 0.0f);
|
||||
|
||||
if (vst_version >= 2) {
|
||||
/* should we send it VST events (i.e. MIDI) */
|
||||
|
||||
if ((plugin->flags & effFlagsIsSynth)
|
||||
@ -541,7 +538,6 @@ bool vstfx_midi_input (VSTState* vstfx)
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user