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 - SDL should use the default ALSA device on Linux
Summary: SDL should use the default ALSA device on Linux
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: audio (show other bugs)
Version: 1.2.8
Hardware: x86 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL: http://www.scummvm.org/
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-01 07:39 UTC by Eike Hein
Modified: 2006-09-23 21:11 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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