Browse Source

Only use jack as default driver on linux if it is installed

tags/v2.1-rc1
falkTX 5 years ago
parent
commit
cf77b740de
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      source/frontend/carla_shared.py

+ 5
- 3
source/frontend/carla_shared.py View File

@@ -292,16 +292,18 @@ if WINDOWS:
CARLA_DEFAULT_AUDIO_DRIVER = "DirectSound"
elif MACOS:
CARLA_DEFAULT_AUDIO_DRIVER = "CoreAudio"
else:
elif os.path.exists("/usr/bin/jackd") or os.path.exists("/usr/bin/jackdbus"):
CARLA_DEFAULT_AUDIO_DRIVER = "JACK"
else:
CARLA_DEFAULT_AUDIO_DRIVER = "PulseAudio"

if LINUX:
if CARLA_DEFAULT_AUDIO_DRIVER == "JACK":
CARLA_DEFAULT_PROCESS_MODE = ENGINE_PROCESS_MODE_MULTIPLE_CLIENTS
CARLA_DEFAULT_TRANSPORT_MODE = ENGINE_TRANSPORT_MODE_JACK
else:
CARLA_DEFAULT_PROCESS_MODE = ENGINE_PROCESS_MODE_PATCHBAY
CARLA_DEFAULT_TRANSPORT_MODE = ENGINE_TRANSPORT_MODE_INTERNAL
# OSC
CARLA_DEFAULT_OSC_ENABLED = not WINDOWS
CARLA_DEFAULT_OSC_TCP_PORT_ENABLED = True


Loading…
Cancel
Save