Browse Source

Simplify vst2 midi checks

Signed-off-by: falkTX <falktx@falktx.com>
pull/1807/head
falkTX 1 year ago
parent
commit
a921096324
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 8 additions and 4 deletions
  1. +8
    -4
      source/backend/plugin/CarlaPluginVST2.cpp

+ 8
- 4
source/backend/plugin/CarlaPluginVST2.cpp View File

@@ -2435,14 +2435,18 @@ protected:

bool hasMidiInput() const noexcept
{
return (fEffect->flags & effFlagsIsSynth) != 0 ||
(pData->hints & PLUGIN_WANTS_MIDI_INPUT) != 0 ||
canDo("receiveVstEvents") || canDo("receiveVstMidiEvent");
return pData->extraHints & PLUGIN_EXTRA_HINT_HAS_MIDI_IN ||
pData->hints & PLUGIN_WANTS_MIDI_INPUT ||
fEffect->flags & effFlagsIsSynth ||
canDo("receiveVstEvents") ||
canDo("receiveVstMidiEvent");
}

bool hasMidiOutput() const noexcept
{
return canDo("sendVstEvents") || canDo("sendVstMidiEvent");
return pData->extraHints & PLUGIN_EXTRA_HINT_HAS_MIDI_OUT ||
canDo("sendVstEvents") ||
canDo("sendVstMidiEvent");
}

// -------------------------------------------------------------------


Loading…
Cancel
Save