From: Rudolf Polzer Date: Mon, 10 May 2010 19:12:07 +0000 (+0200) Subject: ./all run: use pulseaudio if present X-Git-Tag: xonotic-v0.1.0preview~461 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=01ac8add25b75d81c9b3a9b4fbbf6e8f0ef651c3;p=xonotic%2Fxonotic.git ./all run: use pulseaudio if present --- diff --git a/all b/all index a5c458c9..8fb6e0d9 100755 --- a/all +++ b/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