commit 3823bf151e524612ea7b2c3ca9d266e8d3f02a08
parent 50c07a8f654f1ff8419a299c320551b6f522c9b2
Author: ORL - AMMD <orl@ammd.net>
Date: Mon, 24 Jan 2022 23:48:03 +0100
use of NSL naming for alsa port as well (#174)
Add NSM client naming support for ALSA port as well
PR #174
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/Nio/AlsaEngine.cpp b/src/Nio/AlsaEngine.cpp
@@ -23,6 +23,8 @@
#include "Compressor.h"
#include "Nio.h"
+extern char *instance_name;
+
using namespace std;
namespace zyn {
@@ -242,6 +244,8 @@ bool AlsaEngine::openMidi()
return false;
string clientname = "ZynAddSubFX";
+ if(instance_name)
+ clientname = (string) instance_name;
string postfix = Nio::getPostfix();
if (!postfix.empty())
clientname += "_" + postfix;