Skip to content

Commit

Permalink
Use custom jack server name for mod-app
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Oct 16, 2023
1 parent 2f58ab1 commit c926055
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ LDFLAGS += -Wl,-O1,--no-undefined,--strip-all
endif
endif

ifeq ($(MODAPP),1)
CXXFLAGS += -DMODAPP
endif

ifeq ($(shell pkg-config --atleast-version=0.22.0 lilv-0 && echo true), true)
CXXFLAGS += -DHAVE_NEW_LILV
endif
Expand Down
5 changes: 5 additions & 0 deletions utils/utils_jack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,13 @@ bool init_jack(void)
return true;
}

#ifdef MODAPP
const jack_options_t options = static_cast<jack_options_t>(JackNoStartServer|JackUseExactName|JackServerName);
jack_client_t* const client = jack_client_open("mod-ui", options, nullptr, "mod-app");
#else
const jack_options_t options = static_cast<jack_options_t>(JackNoStartServer|JackUseExactName);
jack_client_t* const client = jack_client_open("mod-ui", options, nullptr);
#endif

if (client == nullptr)
return false;
Expand Down

0 comments on commit c926055

Please sign in to comment.