diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-07-03 15:01:21 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-07-03 15:01:21 +0000 |
commit | a3583c89b20160de154d05ff4c3e2f2bd0ff44df (patch) | |
tree | 7e0e4661f3a6cbd17292687f1bee3d9c5317f7e1 /libs/ardour/io.cc | |
parent | 8f3f86b8a815da24179b893cfc6825e034c1b81b (diff) |
ctrl-alt-click now toggles input active status of other MIDI tracks using (any of) the same input(s) as the clicked track
git-svn-id: svn://localhost/ardour2/branches/3.0@9789 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/io.cc')
-rw-r--r-- | libs/ardour/io.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index 5c2cdcf53e..13d22e6592 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -1519,6 +1519,18 @@ IO::connected_to (boost::shared_ptr<const IO> other) const return false; } +bool +IO::connected_to (const string& str) const +{ + for (PortSet::const_iterator i = _ports.begin(); i != _ports.end(); ++i) { + if (i->connected_to (str)) { + return true; + } + } + + return false; +} + void IO::process_input (boost::shared_ptr<Processor> proc, framepos_t start_frame, framepos_t end_frame, pframes_t nframes) { |