Red Hat Bugzilla – Bug 160962
SDL should use ALSA output by default
Last modified: 2007-11-30 17:11:08 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Description of problem:
When playing some of the SDL games from Fedora Extras (SuperTux, Starfighter, etc), I was getting corrupted/clipped music and sound effects. I noticed that when I launched these games that the vile esound daemon was getting launched, too.
A bit of googling, I found that exporting "SDL_AUDIODRIVER=alsa" fixed this completely. I'm not sure how this should be accomplished, but given that Fedora is pushing for pure ALSA usage, it seems like ALSA should be the default for SDL.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install SuperTux from Fedora Extras
2. Get corrupted/clipped sound
3. Quit SuperTux
4. Open a shell and do "export SDL_AUDIODRIVER=alsa"
5. from that shell, launch SuperTux
6. enjoy the sounds and music as they were intended
Agnostic to whether a daemon should be preferred over direct sound access
(see SDL-1.2.3-prefersounddaemons.patch included in the rpm), note that OSS
is searched before ALSA. Which ought to be considered a bug under FC.
The fix being as simple as modifying the table in src/audio/SDL_audio.c.
Could this be fixed before FC5 beta1 comes out this month?
Fixed in rawhide in rpm SDL-1.2.9-4 and in FC-4 updates in rpm SDL-1.2.8-4.