Skip to content

Commit c926055

Browse files
committed
Use custom jack server name for mod-app
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 2f58ab1 commit c926055

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

utils/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ LDFLAGS += -Wl,-O1,--no-undefined,--strip-all
2727
endif
2828
endif
2929

30+
ifeq ($(MODAPP),1)
31+
CXXFLAGS += -DMODAPP
32+
endif
33+
3034
ifeq ($(shell pkg-config --atleast-version=0.22.0 lilv-0 && echo true), true)
3135
CXXFLAGS += -DHAVE_NEW_LILV
3236
endif

utils/utils_jack.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,13 @@ bool init_jack(void)
199199
return true;
200200
}
201201

202+
#ifdef MODAPP
203+
const jack_options_t options = static_cast<jack_options_t>(JackNoStartServer|JackUseExactName|JackServerName);
204+
jack_client_t* const client = jack_client_open("mod-ui", options, nullptr, "mod-app");
205+
#else
202206
const jack_options_t options = static_cast<jack_options_t>(JackNoStartServer|JackUseExactName);
203207
jack_client_t* const client = jack_client_open("mod-ui", options, nullptr);
208+
#endif
204209

205210
if (client == nullptr)
206211
return false;

0 commit comments

Comments
 (0)