diff -r a6337902e2ca -r 8ef1980db907 src/JackCommand.h --- a/src/JackCommand.h Sat Jun 06 01:50:42 2020 +0200 +++ b/src/JackCommand.h Tue Sep 29 22:53:08 2020 +0200 @@ -50,6 +50,9 @@ class JackCommand { private: + Configuration& configuration; + std::wstring_convert> convertor; // TODO: local system encoding + jack_port_t* jackPort = nullptr; jack_ringbuffer_t* ringBuffer = nullptr; pthread_mutex_t messageThreadLock = PTHREAD_MUTEX_INITIALIZER; @@ -155,6 +158,9 @@ public: + JackCommand(Configuration& configuration) : configuration(configuration) { + } + void finish(int sig) { continueProcessing = false; } @@ -174,7 +180,7 @@ relationalWriterFlush(); // Initialize JACK connection: - std::string clientName = "relpipe-in-jack"; + std::string clientName = convertor.to_bytes(configuration.jackClientName); jack_client_t* client = jack_client_open(clientName.c_str(), JackNullOption, nullptr); if (client == nullptr) throw JackException(L"Could not create JACK client.");