I see that the change is pushed to the git repo however I found the sound to be full of static after a few minutes. Some buffering tweaks or something may be needed to clean it up or maybe see if openal works better (if at all). Anyways I'm going to suggest a change to the code to have the sound disabled by default while leaving it available for those that do want to enable it.
Line 455 @ code/client/snd_main.c
Change
Code: Select all
cv = Cvar_Get( "s_initsound", "1", 0 );
To
Code: Select all
cv = Cvar_Get( "s_initsound", "0", 0 );
That just makes it so that s_initsound now defaults to 0 which prevents sound from being initialized at all by default. If you want to have it enabled do one of the following
Open ~/.q3a/baseq3/q3config.cfg and add...
Or in game (for that session) bring down a console (typically tilde ~)
Update: Leaving the above for history but you do not have to change it at all. OpenAL actually works.
Install the packages libopenal1, libopenal-dev, and libopenal-data. The first and last is needed to actually use it and the middle one is needed to link against it.
Open build.sh and change USE_OPENAL=0 to USE_OPENAL=1. Rebuild it. If you built once already it will simply relink OpenAL to the main binary. Now run using the main one. It will still indicate it is using SDL audio but you should have no more static. My audio was clear on the initial testing with no static at all even after several minutes and several test passes in the menu. In game audio was clear to me during play.