From c51c254fae1946b6fa0196f61b024f09208fd3c0 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 26 Mar 2021 16:46:15 +0100 Subject: [PATCH] Do not input-monitor ALSA/JACK MIDI-Through ports --- libs/ardour/port_manager.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libs/ardour/port_manager.cc b/libs/ardour/port_manager.cc index 9c512e911c..3a5ae325ab 100644 --- a/libs/ardour/port_manager.cc +++ b/libs/ardour/port_manager.cc @@ -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))); } }