ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
634 stars 74 forks source link

No sound without pulseaudio #258

Closed baryluk closed 11 years ago

baryluk commented 11 years ago

Similar issue to one in https://github.com/ValveSoftware/Source-1-Games/issues/21 (it however looks to be focused on s3tc support, so I am creating separate one here)

After removing pulseaudio from system audio stopped working in source based games (Counter Strike: Source, Team Fortress 2, Half-Life 2 Deathmatch (Beta)). Most of other games still have sound, just directly using alsa without any tweaks (Counter Strike classic, Dwarfs, Solar 2, FTL), so it is problem with source itself.

In fact I am getting this in terminal:

SDLAUDIO: SDL_OpenAudioDevice() failed: Could not setup connection to PulseAudio

It looks SDL have some trouble autodetecting proper audio backend properly.

export SDL_AUDIODRIVER=alsa

as a workaround works.

jorgenpt commented 11 years ago

Thank you, this should be resolved in the next release. :thumbsup:

jorgenpt commented 11 years ago

This was fixed a bit ago, for all the titles that have shipped since then. Any remaining titles should be fixed in their next release.