Steam for Linux

Steam for Linux

wraptile Apr 1, 2015 @ 7:04am
Sound problems with PulseAudio on certain steam games
Problem:

Some steam games don't have audio on steam.


Fix:
The only fix that worked for me is:
Playing non-steam version of the game (exactly the same one) seems to eliminate this problem, so the problem definitely lies within steam itself.

Specs:

OpenSuse 13.2 KDE pulse audio.



For example, game Ironcast does not have sound when being ran via steam, the open source version which is exactly the same (got it on a humble store) seems to run perfectly fine.
I did quite a bit of research and couldn't find any recent posts, most of the old posts about this issue were marked resolved (i.e. https://github.com/ValveSoftware/steam-for-linux/issues/2968).

Am I missing something here?


EDIT: SOLVED by PixelGFX down below (link for the lazy: http://steamcommunity.com/app/221410/discussions/0/618458030650103916/#c618458030650649992 )
Last edited by wraptile; Apr 1, 2015 @ 10:44am
< >
Showing 1-9 of 9 comments
Dusk of Oolacile Apr 1, 2015 @ 9:01am 
Open the pulse audio volume control and disable HDMI audo and S/PIF outputs. Probably it's switching back and forth between them.
wraptile Apr 1, 2015 @ 9:13am 
Originally posted by LOLCAT:
Open the pulse audio volume control and disable HDMI audo and S/PIF outputs. Probably it's switching back and forth between them.


The only enabled output is my usb headphones :(
PixelGFX Apr 1, 2015 @ 10:23am 
It seems some games are using alsa instead of pulse.
Please check your .asoundrc in your home-directory or/and the /etc/asound.conf and verify that the following is in this file:
ctl.dmixer { type pulse } pcm.pulse { type pulse } ctl.pulse { type pulse } pcm.!default { type pulse } ctl.!default { type pulse }
If not, so you can copy & paste this, save and reboot.
This will change the default audio-output to pulseaudio.

Now you can start you "Systemeinstellungen" (don't know the english word for it) and select multimedia.
If you use more than one soundcard (HDMI for example) change the priority of your primary one.

I hope this will help you.




wraptile Apr 1, 2015 @ 10:40am 
Originally posted by PixelGFX:
It seems some games are using alsa instead of pulse.
Please check your .asoundrc in your home-directory or/and the /etc/asound.conf and verify that the following is in this file:
ctl.dmixer { type pulse } pcm.pulse { type pulse } ctl.pulse { type pulse } pcm.!default { type pulse } ctl.!default { type pulse }
If not, so you can copy & paste this, save and reboot.
This will change the default audio-output to pulseaudio.

Now you can start you "Systemeinstellungen" (don't know the english word for it) and select multimedia.
If you use more than one soundcard (HDMI for example) change the priority of your primary one.

I hope this will help you.

I don't seem to have .asoundrc in home nor do I have /etc/asound.conf . However I did find /etc/asound-pulse.conf and pasted the code which didn't seem to change anything.


The problem is that some games launched via steam are not even detected by pulse. Example of steam Ironcast http://i.imgur.com/mklJoBc.jpg vs Non-steam (exactly the same copy of the game by the looks of it) http://i.imgur.com/SMsKJXx.jpg

You can see that non-steam version is detected and streamed to my headset, where's steam version isn't even detected :(



EDIT: nevermind pasted the code again and it worked !
Last edited by wraptile; Apr 1, 2015 @ 10:43am
Wasiu Apr 1, 2015 @ 11:22am 
też mam linuksa, ale na fonie :D
this works also ( i use OpenSUSE 13.1 64bit )

put this in startoptions for game, e.g. metro last light is one of such game

SDL_AUDIODRIVER=alsa %command%
Koren May 29, 2016 @ 2:23am 
Originally posted by PixelGFX:
It seems some games are using alsa instead of pulse.
Please check your .asoundrc in your home-directory or/and the /etc/asound.conf and verify that the following is in this file:
ctl.dmixer { type pulse } pcm.pulse { type pulse } ctl.pulse { type pulse } pcm.!default { type pulse } ctl.!default { type pulse }
If not, so you can copy & paste this, save and reboot.
This will change the default audio-output to pulseaudio.

Now you can start you "Systemeinstellungen" (don't know the english word for it) and select multimedia.
If you use more than one soundcard (HDMI for example) change the priority of your primary one.

I hope this will help you.

This works like a charm, thanks a lot! (reboot is not required tho, I just restarted daemons)
I can even switch output source live now, it was not possible before
Last edited by Koren; May 29, 2016 @ 2:24am
sheckey Apr 27, 2018 @ 10:16pm 
Hello. Just came here to add that this ~/.asoundrc approach worked for me as well under Debian Jessie. I just got some Audioengine HD3 speakers which have a built-in USB DAC. Many games worked, but Braid would not play over the DAC until I made the ~/.asoundrc configuration. Note also that running the game that didn't work would also seemingly break audio playback until a reboot was performed, including the speaker test in the sound setup Thank you for providing this solution!
sheckey Apr 28, 2018 @ 12:13am 
I spoke too soon! This seemed to work, however it stopped working again after a while. By the way, Windows always works with the Audioengine HD3s, but Linux works only sometimes and it's hard to correlate when. (Using the USB connection and DAC I mean of course.) However, I found a website that mentioned that the built-in DAC does nto seem to work at 44100 bit rate (at least on Linux) and so change it to 48000. This can be done by editing /etc/pulse/daemon.conf and changing and uncommenting (removing the ";") of item "default-sample-rate" from 44100 to 48000:

; default-sample-format = s16le
default-sample-rate = 48000
; alternate-sample-rate = 48000
; default-sample-channels = 2

The website mentioned that the HD3s are supposed to work at 44100 and 48000, so this is curious. (I wonder if WIndows is always using 48000?)

This is working so far! Good luck to anyone having this issue, such as myself.
< >
Showing 1-9 of 9 comments
Per page: 15 30 50

Date Posted: Apr 1, 2015 @ 7:04am
Posts: 9