|
|
@@ -224,7 +224,7 @@ JackLibClient::NoSelfConnectCheck(const char* src, const char* dst) |
|
|
// 2 means client is connecting its own ports (i.e. for app internal functionality) |
|
|
// 2 means client is connecting its own ports (i.e. for app internal functionality) |
|
|
// TODO: Make this check an engine option and more tweakable (return error or success) |
|
|
// TODO: Make this check an engine option and more tweakable (return error or success) |
|
|
// MAYBE: make the engine option changable on the fly and expose it through client or control API |
|
|
// MAYBE: make the engine option changable on the fly and expose it through client or control API |
|
|
if (src_self + dst_self == 1) |
|
|
|
|
|
|
|
|
if (src_self + dst_self != 0) |
|
|
{ |
|
|
{ |
|
|
jack_info("ignoring self hook to other client ports ('%s': '%s' -> '%s')", client_name_ptr, src, dst); |
|
|
jack_info("ignoring self hook to other client ports ('%s': '%s' -> '%s')", client_name_ptr, src, dst); |
|
|
return 0; |
|
|
return 0; |
|
|
@@ -238,7 +238,7 @@ int JackLibClient::PortConnect(const char* src, const char* dst) |
|
|
{ |
|
|
{ |
|
|
int ret; |
|
|
int ret; |
|
|
|
|
|
|
|
|
//jack_info("Client connecting '%s' to '%s'"); |
|
|
|
|
|
|
|
|
//jack_info("Client connecting '%s' to '%s'", src, dst); |
|
|
|
|
|
|
|
|
ret = NoSelfConnectCheck(src, dst); |
|
|
ret = NoSelfConnectCheck(src, dst); |
|
|
if (ret > 0) |
|
|
if (ret > 0) |
|
|
@@ -253,7 +253,7 @@ int JackLibClient::PortDisconnect(const char* src, const char* dst) |
|
|
{ |
|
|
{ |
|
|
int ret; |
|
|
int ret; |
|
|
|
|
|
|
|
|
//jack_info("Client disconnecting '%s' to '%s'"); |
|
|
|
|
|
|
|
|
//jack_info("Client disconnecting '%s' to '%s'", src, dst); |
|
|
|
|
|
|
|
|
ret = NoSelfConnectCheck(src, dst); |
|
|
ret = NoSelfConnectCheck(src, dst); |
|
|
if (ret > 0) |
|
|
if (ret > 0) |
|
|
@@ -264,6 +264,13 @@ int JackLibClient::PortDisconnect(const char* src, const char* dst) |
|
|
return ret; |
|
|
return ret; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int JackLibClient::PortDisconnect(jack_port_id_t src) |
|
|
|
|
|
{ |
|
|
|
|
|
jack_info("Ignoring port disconnect request"); |
|
|
|
|
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} // end of namespace |
|
|
} // end of namespace |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|