Bug 2357 - SDL-ALSA Sound does not get properly reinitialized after /snd_restart
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Sound
Version: 1.33 SVN
Hardware: PC Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2005-08-31 22:33 EDT by Thilo Schulz
Modified: 2007-05-21 11:22:44 EDT
0 users

See Also:



Description Thilo Schulz 2005-08-31 22:33:18 EDT
I made the SDL driver use alsa by setting the environment variable 
SDL_AUDIODRIVER="alsa". 
 
Sound generally works - as long as it is only initialized once. If the sound 
engine is shut down and restarted, sound will cease to work. I use the Alsa 
delivered with kernel 2.6.12 and libSDL version 1.2.8. Maybe it is some 
unfortunate software/hardware combination that leads to this bug - it would be 
good though if someone could try to confirm this. 
Some mods like World of Padman seem to call the mod function CL_Snd_Restart_f 
in cl_main.c thus effectively disabling sound completely on my system. 
All my attempts to fix it failed - I came up with a dirty hack though, where 
sound is being initialized after the UI loaded up.
Comment 1 Ryan C. Gordon 2005-08-31 23:09:17 EDT
It seems to be a general bug in the new SDL quake code, and not SDL/alsa specific.
Looking into it...

--ryan.

Comment 2 Ryan C. Gordon 2005-09-01 01:09:54 EDT
Fixed in svn revision #62.

--ryan.

Comment 3 Ryan C. Gordon 2007-05-21 11:22:44 EDT
Setting a QA contact on all ioquake3 bugs, even resolved ones. Sorry if you get a flood of email from this, it should only happen once. Apologies for the incovenience.

--ryan.