rpms/SDL_mixer/devel SDL_pulseaudio_hack.csh, 1.1, 1.2 SDL_pulseaudio_hack.sh, 1.1, 1.2
Warren Togami (wtogami)
fedora-extras-commits at redhat.com
Tue Nov 27 23:41:25 UTC 2007
Author: wtogami
Update of /cvs/pkgs/rpms/SDL_mixer/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19510
Modified Files:
SDL_pulseaudio_hack.csh SDL_pulseaudio_hack.sh
Log Message:
If alsa-plugins-pulseaudio is installed, force SDL to output sound to esd.
Lennart promised to implement native SDL to pulseaudio before F9 so we can remove this hack.
Index: SDL_pulseaudio_hack.csh
===================================================================
RCS file: /cvs/pkgs/rpms/SDL_mixer/devel/SDL_pulseaudio_hack.csh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SDL_pulseaudio_hack.csh 31 Oct 2007 14:39:10 -0000 1.1
+++ SDL_pulseaudio_hack.csh 27 Nov 2007 23:40:52 -0000 1.2
@@ -1,2 +1,4 @@
# Temporary hack until SDL directly supports pulseaudio
-setenv SDL_AUDIODRIVER esd
+# If alsa-plugins-pulseaudio is installed, force SDL to output sound to esd
+set nonomatch
+if ( -e /usr/lib*/alsa-lib/libasound_module_pcm_pulse.so ) setenv SDL_AUDIODRIVER esd
Index: SDL_pulseaudio_hack.sh
===================================================================
RCS file: /cvs/pkgs/rpms/SDL_mixer/devel/SDL_pulseaudio_hack.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SDL_pulseaudio_hack.sh 31 Oct 2007 14:39:10 -0000 1.1
+++ SDL_pulseaudio_hack.sh 27 Nov 2007 23:40:52 -0000 1.2
@@ -1,2 +1,3 @@
# Temporary hack until SDL directly supports pulseaudio
-export SDL_AUDIODRIVER=esd
+# If alsa-plugins-pulseaudio is installed, force SDL to output sound to esd
+[ -e /usr/lib*/alsa-lib/libasound_module_pcm_pulse.so ] && export SDL_AUDIODRIVER=esd
More information about the fedora-extras-commits
mailing list