boost::shared_ptr<Ports> p = ports.reader();
for (Ports::iterator i = p->begin(); i != p->end(); ++i) {
+ //cerr << "comparing port name '" << (*i)->name() << "' with '" << full_name << "'" << endl;
if ((*i)->name() == full_name) {
return *i;
}
string s = make_port_name_non_relative (source);
string d = make_port_name_non_relative (destination);
+ //cerr << "Trying to connect source: " << s << " with destination " << d << endl;
+
Port* src = get_port (s);
Port* dst = get_port (d);
string s = make_port_name_non_relative (source);
string d = make_port_name_non_relative (destination);
+ //cerr << "trying to disconnect port '" << s << "' from port '" << d << endl;
+
Port* src = get_port (s);
Port* dst = get_port (d);
int ret;
if (_flags & IsInput) {
- ret = jack_disconnect (engine->jack(), _name.c_str(), other.c_str());
- } else {
ret = jack_disconnect (engine->jack(), other.c_str(), _name.c_str());
+ } else {
+ ret = jack_disconnect (engine->jack(), _name.c_str(), other.c_str());
}
set<string>::iterator i = _named_connections.find (other);
/* external ports use the same buffer for the jack port (_ext_port)
* and internal ports (this) */
_ext_port = new JackMidiPort (name, flags, _buffer);
+ Port::set_name (_ext_port->name());
} else {
/* internal ports just have a single buffer, no jack port */
_ext_port = 0;
+ set_name (name);
}
- set_name (name);
reset ();
}