]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Fix no audio by removing legacy (SDL 1.2) SDL_AUDIODRIVER logic
authorAmadeusz Sławiński <amade@asmblr.net>
Fri, 8 Apr 2022 18:29:18 +0000 (18:29 +0000)
committerbones_was_here <bones_was_here@xa.org.au>
Fri, 8 Apr 2022 18:29:18 +0000 (18:29 +0000)
misc/tools/all/xonotic.subr
xonotic-linux-sdl.sh

index 35ce643154553ff53f139592e02fdb35c977475d..433073159b029518f0aea1ab264ba21234426c02 100644 (file)
@@ -348,15 +348,6 @@ case "$cmd" in
                fi
                set -- "darkplaces/darkplaces$client" -xonotic "$@"
 
-               # if pulseaudio is running: USE IT
-               if [ -z "$SDL_AUDIODRIVER" ] && ! [ -n "$WE_HATE_OUR_USERS" ] && ! [ x"`uname`" = x"Darwin" ]; 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
-
                binary=$1
 
                if [ x"$USE_GDB" = x"yes" ]; then
index becfe8865106b4ab587b54951db34c4168375114..f96c83f9d0af0ed70632c8e1c517f1a0875c4b13 100755 (executable)
@@ -122,13 +122,4 @@ case "$xserver" in
                ;;
 esac
 
-# if pulseaudio
-if [ -z "$SDL_AUDIODRIVER" ]; 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
-
 exec "$@"