diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-03-21 17:02:30 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-03-21 17:02:30 +0000 |
commit | 814f2fbd8f88299110a7b2bbc49d85d1e121f1e1 (patch) | |
tree | a823a82b41e48fe3b3045a3ac26c9beea77005c7 /libs/ardour/io.cc | |
parent | 692987ee2e4adf52722bbe47db616af7d9959065 (diff) |
change session construction so that the the monitor bus config is derived (once) from the master bus config
git-svn-id: svn://localhost/ardour2/branches/3.0@6779 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/io.cc')
-rw-r--r-- | libs/ardour/io.cc | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index b34614e1dd..9da9bf2a28 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -1444,18 +1444,24 @@ IO::set_name_in_state (XMLNode& node, const string& new_name) } bool +IO::connected () const +{ + /* do we have any connections at all? */ + + for (PortSet::const_iterator p = _ports.begin(); p != _ports.end(); ++p) { + if (p->connected()) { + return true; + } + } + + return false; +} + +bool IO::connected_to (boost::shared_ptr<const IO> other) const { if (!other) { - /* do we have any connections at all? */ - - for (PortSet::const_iterator p = _ports.begin(); p != _ports.end(); ++p) { - if (p->connected()) { - return true; - } - } - - return false; + return connected (); } assert (_direction != other->direction()); |