PortCountChanged (n_ports()); /* EMIT SIGNAL */
}
- if (change == ConfigurationChanged) {
+ if (change & ConfigurationChanged) {
setup_bundles ();
}
}
bool
-IO::ensure_ports_locked (ChanCount count, bool clear, void* src)
+IO::ensure_ports_locked (ChanCount count, bool clear, void* /*src*/)
{
Port* port = 0;
bool changed = false;
}
XMLNode&
-IO::state (bool full_state)
+IO::state (bool /*full_state*/)
{
XMLNode* node = new XMLNode (state_node_name);
char buf[64];
}
void
-IO::bundle_changed (Bundle::Change c)
+IO::bundle_changed (Bundle::Change /*c*/)
{
//XXX
// connect_input_ports_to_bundle (_input_bundle, this);
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;
+ }
+
assert (_direction != other->direction());
uint32_t i, j;