contrib/steam/alsa_sdl_audiodriver.patch
2016-03-28 14:08:45 +11:00

15 lines
386 B
Diff

--- a/steam 2013-02-15 14:43:40.000000000 -0500
+++ b/steam 2013-02-17 23:26:31.951179106 -0500
@@ -17,6 +17,11 @@
# Set up domain for script localization
export TEXTDOMAIN=steam
+# check if pulseaudio is installed and if it isn't, use alsa for SDL_AUDIODRIVER
+if ! pulseaudio --check &>/dev/null; then
+ export SDL_AUDIODRIVER=alsa
+fi
+
function show_message()
{
style=$1