mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 00:56:33 +01:00
Do not input-monitor ALSA/JACK MIDI-Through ports
This commit is contained in:
parent
0edb6083f1
commit
c51c254fae
1 changed files with 10 additions and 0 deletions
|
|
@ -888,6 +888,11 @@ PortManager::update_input_ports (bool clear)
|
||||||
if (port_is_mine (*p) || !_backend->get_port_by_name (*p)) {
|
if (port_is_mine (*p) || !_backend->get_port_by_name (*p)) {
|
||||||
continue;
|
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 ()) {
|
if (mip->find (*p) == mip->end ()) {
|
||||||
new_midi.push_back (*p);
|
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)) {
|
if (port_is_mine (*p) || !_backend->get_port_by_name (*p)) {
|
||||||
continue;
|
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)));
|
mpw->insert (make_pair (*p, MIDIInputPort (32)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue