13
0

Rename JACK to "JACK/Pipewire" on Linux (2/2)

This commit is contained in:
Robin Gareus 2024-07-31 04:44:04 +02:00
parent a76b2ed1bb
commit cb34845498
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 13 additions and 2 deletions

View File

@ -860,7 +860,13 @@ ARDOUR_UI::load_from_application_api (const std::string& path)
if (nsm) {
unload_session(false, true);
if (!AudioEngine::instance()->set_backend("JACK", ARDOUR_COMMAND_LINE::backend_client_name, "")) {
if (!AudioEngine::instance()->set_backend(
#if ! (defined(__APPLE__) || defined(PLATFORM_WINDOWS))
"JACK/Pipewire",
#else
"JACK",
#endif
ARDOUR_COMMAND_LINE::backend_client_name, "")) {
error << _("NSM: The JACK backend is mandatory and can not be loaded.") << endmsg;
return;
}

View File

@ -49,10 +49,15 @@ using namespace PBD;
static const char* localedir = LOCALEDIR;
static string backend_client_name;
static string backend_name = "JACK";
static CrossThreadChannel xthread (true);
static TestReceiver test_receiver;
#if ! (defined(__APPLE__) || defined(PLATFORM_WINDOWS))
static string backend_name = "JACK/Pipewire";
#else
static string backend_name = "JACK";
#endif
/** @param dir Session directory.
* @param state Session state file, without .ardour suffix.
*/