Bug 160962

Summary: SDL should use ALSA output by default
Product: [Fedora] Fedora Reporter: Jens Knutson <jensk.maps>
Component: SDLAssignee: Thomas Woerner <twoerner>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: gajownik, joukj, marius.andreiana, rth
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-01-27 13:20:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jens Knutson 2005-06-19 09:58:21 UTC
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):
SDL-1.2.8-3.2

How reproducible:
Always

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
  

Additional info:

Comment 1 Richard Henderson 2005-08-24 04:46:53 UTC
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[45].

The fix being as simple as modifying the table in src/audio/SDL_audio.c.

Comment 2 Marius Andreiana 2005-11-03 09:18:10 UTC
Could this be fixed before FC5 beta1 comes out this month?

Comment 3 Thomas Woerner 2006-01-27 13:20:57 UTC
Fixed in rawhide in rpm SDL-1.2.9-4 and in FC-4 updates in rpm SDL-1.2.8-4.