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

Summary: Pulseaudio driver selected while pulseaudio server not installed
Product: SDL Reporter: beuc
Component: audioAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86_64   
OS: Linux   

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