mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 04:06:26 +01:00
fix my usual geometric/geographic dyslexia w.r.t jack midi port connection restoration
git-svn-id: svn://localhost/ardour2/branches/3.0@6443 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
8eb081e546
commit
4abb46a7d5
1 changed files with 4 additions and 4 deletions
|
|
@ -347,11 +347,11 @@ JACK_MidiPort::set_state (const XMLNode& node)
|
||||||
Port::set_state (node);
|
Port::set_state (node);
|
||||||
const XMLProperty* prop;
|
const XMLProperty* prop;
|
||||||
|
|
||||||
if ((prop = node.property ("outbound")) != 0 && _jack_output_port) {
|
if ((prop = node.property ("inbound")) != 0 && _jack_input_port) {
|
||||||
_inbound_connections = prop->value ();
|
_inbound_connections = prop->value ();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((prop = node.property ("inbound")) != 0 && _jack_input_port) {
|
if ((prop = node.property ("outbound")) != 0 && _jack_output_port) {
|
||||||
_outbound_connections = prop->value();
|
_outbound_connections = prop->value();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -364,7 +364,7 @@ JACK_MidiPort::make_connections ()
|
||||||
split (_inbound_connections, ports, ',');
|
split (_inbound_connections, ports, ',');
|
||||||
for (vector<string>::iterator x = ports.begin(); x != ports.end(); ++x) {
|
for (vector<string>::iterator x = ports.begin(); x != ports.end(); ++x) {
|
||||||
if (_jack_client) {
|
if (_jack_client) {
|
||||||
jack_connect (_jack_client, jack_port_name (_jack_output_port), (*x).c_str());
|
jack_connect (_jack_client, (*x).c_str(), jack_port_name (_jack_input_port));
|
||||||
/* ignore failures */
|
/* ignore failures */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -375,7 +375,7 @@ JACK_MidiPort::make_connections ()
|
||||||
split (_outbound_connections, ports, ',');
|
split (_outbound_connections, ports, ',');
|
||||||
for (vector<string>::iterator x = ports.begin(); x != ports.end(); ++x) {
|
for (vector<string>::iterator x = ports.begin(); x != ports.end(); ++x) {
|
||||||
if (_jack_client) {
|
if (_jack_client) {
|
||||||
jack_connect (_jack_client, (*x).c_str(), jack_port_name (_jack_input_port));
|
jack_connect (_jack_client, jack_port_name (_jack_output_port), (*x).c_str());
|
||||||
/* ignore failures */
|
/* ignore failures */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue