Bug 160962 - SDL should use ALSA output by default
SDL should use ALSA output by default
Product: Fedora
Classification: Fedora
Component: SDL (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Thomas Woerner
Depends On:
  Show dependency treegraph
Reported: 2005-06-19 05:58 EDT by Jens Knutson
Modified: 2007-11-30 17:11 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-01-27 08:20:57 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jens Knutson 2005-06-19 05:58:21 EDT
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):

How reproducible:

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 00:46:53 EDT
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 04:18:10 EST
Could this be fixed before FC5 beta1 comes out this month?
Comment 3 Thomas Woerner 2006-01-27 08:20:57 EST
Fixed in rawhide in rpm SDL-1.2.9-4 and in FC-4 updates in rpm SDL-1.2.8-4.

Note You need to log in before you can comment on or make changes to this bug.