mirror of
https://gitlab.com/xonotic/xonotic
synced 2024-12-14 10:55:18 +00:00
./all run: use pulseaudio if present
This commit is contained in:
parent
84d30a1eb1
commit
01ac8add25
8
all
8
all
@ -503,6 +503,14 @@ case "$cmd" in
|
||||
fi
|
||||
fi
|
||||
set -- "darkplaces/darkplaces$client" -nexuiz -customgamename Xonotic -customgamedirname1 data -customgamedirname2 "" -customgamescreenshotname xonotic -customgameuserdirname xonotic "$@"
|
||||
|
||||
# if pulseaudio is running: USE IT
|
||||
if ps -C pulseaudio >/dev/null; then
|
||||
if ldd /usr/lib/libSDL.so 2>/dev/null | grep pulse >/dev/null; then
|
||||
export SDL_AUDIODRIVER=pulse
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "$USE_GDB" ]; then
|
||||
set -- gdb --args "$@"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user