diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-09-13 11:21:15 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-09-13 11:21:15 -0400 |
commit | f9d08daa477230f90c194edc555f77c267b5078c (patch) | |
tree | 40bdcac21886bac7010ec71972f2928e8c858982 /libs/ardour/port.cc | |
parent | b085a7993880e1292fb34e8c16d752a7fc4ec7c8 (diff) |
change inheritance so that an AudioBackend IS-A PortEngine
This allows a derived (concrete) implementation to share information (e.g. sample rate, buffer size)
between the audio backend side of things and the port management side of things.
Diffstat (limited to 'libs/ardour/port.cc')
-rw-r--r-- | libs/ardour/port.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/port.cc b/libs/ardour/port.cc index e8629cbf14..cf961d6828 100644 --- a/libs/ardour/port.cc +++ b/libs/ardour/port.cc @@ -122,7 +122,7 @@ Port::disconnect_all () bool Port::connected_to (std::string const & o) const { - if (!port_engine.connected()) { + if (!port_engine.available()) { return false; } @@ -132,7 +132,7 @@ Port::connected_to (std::string const & o) const int Port::get_connections (std::vector<std::string> & c) const { - if (!port_engine.connected()) { + if (!port_engine.available()) { c.insert (c.end(), _connections.begin(), _connections.end()); return c.size(); } |