} else {
jack_deactivate (_priv_jack);
Stopped(); /* EMIT SIGNAL */
+ MIDI::JACK_MidiPort::JackHalted (); /* EMIT SIGNAL */
}
}
if (was_running) {
ae->Halted(); /* EMIT SIGNAL */
+ MIDI::JACK_MidiPort::JackHalted (); /* EMIT SIGNAL */
}
}
if (_running) {
_running = false;
Stopped(); /* EMIT SIGNAL */
+ MIDI::JACK_MidiPort::JackHalted (); /* EMIT SIGNAL */
}
return 0;
XMLNode& root (Port::get_state ());
if (_jack_output_port) {
-
+
const char** jc = jack_port_get_connections (_jack_output_port);
string connection_string;
if (jc) {
}
free (jc);
}
-
+
if (!connection_string.empty()) {
root.add_property ("outbound", connection_string);
}
+ } else {
+ if (!_outbound_connections.empty()) {
+ root.add_property ("outbound", _outbound_connections);
+ }
}
if (_jack_input_port) {
if (!connection_string.empty()) {
root.add_property ("inbound", connection_string);
}
+ } else {
+ if (!_inbound_connections.empty()) {
+ root.add_property ("inbound", _inbound_connections);
+ }
}
return root;