We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 290

Summary: SDL should use the default ALSA device on Linux
Product: SDL Reporter: Eike Hein <sho>
Component: audioAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.8   
Hardware: x86   
OS: Linux   
URL: http://www.scummvm.org/

Description Eike Hein 2006-08-01 07:39:22 UTC
The application I use is ScummVM[1], which is a virtual machine for older adventure games that uses SDL extensively. Nor for various reasons I prefer gaming with my USB headset, which in Linux/ALSA acts as an additional sound card device, the second after my PCI sound card. I switch sound cards by setting the USB headset to my default ALSA device in ~ /.asoundrc, which is respected by nearly all applications, but apparently not those that use SDL 1.2.8. Instead, I have to set the AUDIODEV environment variable to "default" to get it to use the USB sound device (relying on those .asoundrc modifications), otherwise it will always use hw:0, which is the PCI sound device. IMO, using the default device would be a more reasonable default - SDL should do that instead of always trying to naively use hw:0, defeating the global user ALSA configuration.
Comment 1 Sam Lantinga 2006-09-23 21:11:50 UTC
This is already fixed in SDL 1.2.11