Browse Source

Ignore MIDI ports known to cause issues in JUCE engine

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.5.1
falkTX 2 years ago
parent
commit
76cdd50bfa
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      source/backend/engine/CarlaEngineJuce.cpp

+ 10
- 2
source/backend/engine/CarlaEngineJuce.cpp View File

@@ -469,8 +469,12 @@ public:

for (int i=0, count=midiIns.size(); i<count; ++i)
{
const juce::String name(midiIns[i]);
if (name == "a2jmidid - port")
continue;

PortNameToId portNameToId;
portNameToId.setData(kExternalGraphGroupMidiIn, uint(i+1), midiIns[i].toRawUTF8(), "");
portNameToId.setData(kExternalGraphGroupMidiIn, uint(i+1), name.toRawUTF8(), "");

extGraph.midiPorts.ins.append(portNameToId);
}
@@ -482,8 +486,12 @@ public:

for (int i=0, count=midiOuts.size(); i<count; ++i)
{
const juce::String name(midiOuts[i]);
if (name == "a2jmidid - port")
continue;

PortNameToId portNameToId;
portNameToId.setData(kExternalGraphGroupMidiOut, uint(i+1), midiOuts[i].toRawUTF8(), "");
portNameToId.setData(kExternalGraphGroupMidiOut, uint(i+1), name.toRawUTF8(), "");

extGraph.midiPorts.outs.append(portNameToId);
}


Loading…
Cancel
Save