| Summary: | Audio system isn't choosing ALSA unless forced. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ryan C. Gordon <icculus> |
| Component: | audio | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P1 | ||
| Version: | HG 2.0 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
|
Description
Ryan C. Gordon
2009-10-09 23:28:05 UTC
Taking bug, but probably won't look at this until 1.2.14 ships. --ryan. Bumping priority on a set of bugs. --ryan. ALSA_Init() in src/audio/alsa/SDL_alsa_audio.c has this:
return 1; /* !!! FIXME: return 2 once device enum is implemented. */
So it successfully inits both PulseAudio and ALSA, but neither can guarantee an actual device will be available, so it's favoring OSS, which can.
This just needs to be filled in.
--ryan.
> This just needs to be filled in.
Actually, thinking about this more, I might remove this functionality. It probably doesn't make sense to skip a good driver that can't report available hardware up front for a shitty driver that can.
(or if not "shitty," at least "unexpected.")
My original idea was that maybe something like esound's libraries are installed, but there's no sound server, so we could make a decision to skip this audio target during SDL_Init()...but in practice, we maybe don't want to do this.
I'll think on it some more.
--ryan.
Fixed in svn revision #5542. --ryan. |