+ /* two non-Ardour ports; things are slightly more involved */
+
+ /* get a port handle for one of them .. */
+
+ PortEngine::PortHandle ph = AudioEngine::instance()->port_engine().get_port_by_name (*i);
+ if (!ph) {
+ return PortMatrixNode::NOT_ASSOCIATED;
+ }
+
+ /* see if it is connected to the other one ... */
+
+ if (AudioEngine::instance()->port_engine().connected_to (ph, *j, false)) {
+ return PortMatrixNode::ASSOCIATED;
+ }
+
+ return PortMatrixNode::NOT_ASSOCIATED;