diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-06-26 13:45:59 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-06-26 13:45:59 +0000 |
commit | 37978aa21437b9bb308efeb9828fbe4a06077cee (patch) | |
tree | f7b3b681e0e42c233ded6715ea824114d9e5c3ec /gtk2_ardour/port_group.cc | |
parent | ecb0cd5d119d28092a8f48e4521ac5eba197bb54 (diff) |
lots of details relating to MIDI file management; try to ignore ALSA sequencer MIDI ports named "Midi-Through"
git-svn-id: svn://localhost/ardour2/branches/3.0@7305 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_group.cc')
-rw-r--r-- | gtk2_ardour/port_group.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/port_group.cc b/gtk2_ardour/port_group.cc index 8dc91edb3b..a010b3c184 100644 --- a/gtk2_ardour/port_group.cc +++ b/gtk2_ardour/port_group.cc @@ -422,6 +422,16 @@ PortGroupList::gather (ARDOUR::Session* session, bool inputs, bool allow_dups) !track->has_port(p) && !ardour->has_port(p) && !other->has_port(p)) { + + /* special hack: ignore MIDI ports labelled Midi-Through. these + are basically useless and mess things up for default + connections. + */ + + if (p.find ("MIDI-Through") != string::npos) { + ++n; + continue; + } if (port_has_prefix (p, "system:") || port_has_prefix (p, "alsa_pcm") || |