From 0c42904f584de75ba9d8014b8c2f42bd574160cc Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 20 May 2010 09:30:32 +0200 Subject: [PATCH] fix useless warning on pulseaudio check on Windows :P --- all | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/all b/all index 80b78de3..935a58ae 100755 --- a/all +++ b/all @@ -522,9 +522,11 @@ case "$cmd" in 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 + if [ -z "$SDL_AUDIODRIVER" ] && ! [ -n "$WE_HATE_OUR_USERS" ]; then + 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 fi -- 2.39.2