-
Notifications
You must be signed in to change notification settings - Fork 174
-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HL1: No sound effects with pure ALSA sound system #824
Comments
Same problem here. It's the same for me with or without SDL_AUDIODRIVER="alsa".
The question is why it still plays the music and not any sound effect what so ever... |
What happens if you don't set SDL_AUDIODRIVER? |
I too get the same result, with either |
I tried not setting |
alfred-valve Also, I installed pulseaudio and now I get full sound working. |
We have found the issue, the SDL build we picked up for HL1 is missing ALSA support, we are fixing that now. |
tonights update has a libsdl with ALSA support |
alfred-valve: Just to be clear: is that fix supposed to be in the update that already went out after you closed this issue or is there another one planned? As it is, sound effect in Half-Life are still not working for me. Same for Counter-Strike. |
Same here. Sound is still not working. |
Not working for me, too. |
If anyone like me don't want to wait you can build sdl2 for yourself to fix the sound!
Run autoconf and create a build dir
If you like me is running a 64bit system you need to add -m32 to CFLAGS and LDFLAGS in the Makefile in the build dir.
Now sound works flawlessly for me so far :) |
Thanks, but already tried that and also copying the SDL2-lib from TF2 doesn't help. |
Have you tried to start if from terminal?
It's strange that this works but not starting it from within steam... :S |
That works :) but only if I add SDL_AUDIODRIVER=alsa to it - Thank you very much! |
I can confirm that
works, even without substituting your own libsdl2. My guess is that when launched from Steam it picks up Edit: confirmed that it picks up the wrong libsdl:
|
I guess you're right that it must be using "~/.steam/root/ubuntu12_32/libsdl2-2.0.so.0" instead. Is there a way to replace libsdl2 in ubuntu12_32 ? |
DarkDefender: I'd wait for Valve to either change the LD_LIBRARY_PATH order when HL is launched from Steam or update the libsdl in the Steam root. But if you really need to be able to launch HL/CS with sound from within Steam now you could just wrap the binary:
Then create a new hl_linux file with
And finally
Of course, the wrapper will be overwritten the next time that file is updated, but that's probably desirable anyway. |
Thanks dscharrer! |
@dscharrer Your fix worked! Thanks! @DarkDefender That may be true, but I can confirm this is still an issue with ALSA-only systems. |
This bug does not occur anymore with the latest Steam update applied. (SDL2 has been updated I think) |
Fixed for me too :) It still uses |
Sound works only when I use |
@alfred-valve @fosskers SDL_AUDIODRIVER="alsa" ./hl.sh -game valve to get sound to work.
This is the log part when sound is not working:
|
Are you guys running a logon manager or do you start X via startx? If you start it via startx add
to your ~/.bashrc |
@NullCollision I use startx and fish shell. I suppose I could add that variable, yeah. |
I ran into this issue recently and ultimately discovered that it was linking some old libs in "Steam/ubuntu12_32/steam-runtime.old/" instead of the new ones. Deleting the "steam-runtime.old" directory fixed it. Now I'm not saying this will work for everyone but it's worth looking at. |
Installing |
Background music still plays, so the problem appears to only be with sound effects.
Note that I have set
SDL_AUDIODRIVER="alsa"
in my environment, which helped fix no sound in TF2.System Information:
The text was updated successfully, but these errors were encountered: