[fix] let SDL select available Linux audio driver

This commit is contained in:
dijunkun
2026-07-31 17:34:40 +08:00
parent 9d544788b0
commit 34155d0266
-4
View File
@@ -943,10 +943,6 @@ void GuiApplication::InitializeSettings() {
bool GuiApplication::InitializeSDL() { bool GuiApplication::InitializeSDL() {
#if defined(__linux__) && !defined(__APPLE__) #if defined(__linux__) && !defined(__APPLE__)
if (!getenv("SDL_AUDIODRIVER")) {
setenv("SDL_AUDIODRIVER", "pulseaudio", 0);
}
// Standard Wayland top-level windows cannot choose an absolute screen // Standard Wayland top-level windows cannot choose an absolute screen
// position. Use the session's XWayland compatibility server for the GUI so // position. Use the session's XWayland compatibility server for the GUI so
// auxiliary windows such as the controlled-side status window can be // auxiliary windows such as the controlled-side status window can be