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 1072 - Pulseaudio driver selected while pulseaudio server not installed
Summary: Pulseaudio driver selected while pulseaudio server not installed
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: audio (show other bugs)
Version: HG 2.0
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-01 09:15 UTC by beuc
Modified: 2013-05-21 01:24 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 beuc 2010-11-01 09:15:19 UTC
I initialized SDL audio through SDL_Init(SDL_INIT_AUDIO).  Pulseaudio is selected, but it later fails later when I call Mix_OpenAudio:
Mix_OpenAudio: Could not connect to PulseAudio
which is normal because pulseaudio is not installed on my box.

Setting SDL_AUDIODRIVER did the trick.

Apparently a test is made when SDL opens the audio device, detecting that pulseaudio is not present.  It would make sense to also make that test during the Init part, so that SDL could skip the pulseaudio driver and try the another one.
Comment 1 beuc 2010-11-01 09:16:24 UTC
(In reply to comment #0)
> Setting SDL_AUDIODRIVER did the trick.

I mean SDL_AUDIODRIVER=alsa.
Comment 2 Sam Lantinga 2013-05-21 01:24:17 UTC
This should be fixed in the latest snapshot:
http://www.libsdl.org/tmp/SDL-2.0.zip