Do not input-monitor ALSA/JACK MIDI-Through ports

This commit is contained in:
Robin Gareus 2021-03-26 16:46:15 +01:00
parent 0edb6083f1
commit c51c254fae
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -888,6 +888,11 @@ PortManager::update_input_ports (bool clear)
if (port_is_mine (*p) || !_backend->get_port_by_name (*p)) {
continue;
}
#ifdef HAVE_ALSA
if ((*p).find (X_("Midi Through")) != string::npos || (*p).find (X_("Midi-Through")) != string::npos) {
continue;
}
#endif
if (mip->find (*p) == mip->end ()) {
new_midi.push_back (*p);
}
@ -934,6 +939,11 @@ PortManager::update_input_ports (bool clear)
if (port_is_mine (*p) || !_backend->get_port_by_name (*p)) {
continue;
}
#ifdef HAVE_ALSA
if ((*p).find (X_("Midi Through")) != string::npos || (*p).find (X_("Midi-Through")) != string::npos) {
continue;
}
#endif
mpw->insert (make_pair (*p, MIDIInputPort (32)));
}
}