commit a50b0d59103a0bf6cbdf60c5bd94cbb32a004376
parent 05fb681ca20f9489e2ec5c8a59222773fd7265d3
Author: Plagiat Gang Of Bros <[email protected]>
Date: Thu, 18 Nov 2021 16:38:01 +0100
Fix naming of jack_client using NSM client-id when using JACK-MULTI output
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/Nio/JackMultiEngine.cpp b/src/Nio/JackMultiEngine.cpp
@@ -28,6 +28,7 @@
#include "JackMultiEngine.h"
extern zyn::MiddleWare *middleware;
+extern char *instance_name;
namespace zyn {
@@ -84,7 +85,10 @@ bool JackMultiEngine::Start(void)
clientname += "_" + os_pid_as_padded_string();
jack_status_t jackstatus;
- impl->client = jack_client_open(clientname.c_str(), JackNullOption, &jackstatus);
+ if(instance_name)
+ impl->client = jack_client_open(instance_name, JackNullOption, &jackstatus);
+ else
+ impl->client = jack_client_open(clientname.c_str(), JackNullOption, &jackstatus);
if(!impl->client)
errx(1, "failed to connect to jack...");