Solved No audio in Steam game

My limited knowledge and Google-Fu are not coming together in solving an audio problem that I'm having. I have Steam installed via linux-steam-utils, and it runs great. I have been able to successfully install two games, but I can only get one of them to run. I cannot get the audio to work for the game that runs. I understand that some games will have audio that works while others won't. What are some troubleshooting steps I should run through to see if I can get the audio working? I appreciate any help!
 
Hello,

at first glance, it would be helpful to know which game it is and whether it is the Windows or Linux version.
Apologies for the delay in reply. The game in question is DUSK, and I believe I am running the Linux version. I can only get it to run if I set the compatibility to either "LSU chroot with legacy Steam Runtime" or "LSU chroot with Steam Runtime 3 (Sniper)." Either way, there is no audio coming from the game. The only audio-related message I get in the terminal is the following:
Code:
[1019/104240.096597:WARNING:audio_manager_linux.cc(53)] Falling back to ALSA for audio output. PulseAudio is not available or could not be initialized.

EDIT: I also tried using "LSU chroot with Proton 8." Slightly worse results in that the game launches and proceeds through its load screen, but then it just stops at a black screen. Still no audio.
 
OK - See see which version of Wine you are running - you want to run wine-proton when you use Steam:

There is an option (mine is at the bottom of the Steam game compatibility list) to run "FreeBSD wine". That's the one that (sort of) works for me. (See the link I sent you for details): Also be sure that wine-proton is the WINE that is being run -- like this:

shell$ whereis wine
wine: /usr/local/wine-proton/bin/wine /usr/local/share/man/man1/wine.1.gz /usr/ports/emulators/wine
shell$

If you need to re-adjust your $PATH - I set the following in the $HOME directory .profile

#
# Wine Proton
#
export PATH=/usr/local/wine-proton/bin:$PATH

There is an (UPGRADED) experimental wine-proton (version == 10) available - but I have not tried it yet. Hearing that version is working for at least 1x other FreeBSD Forum member:

Hope that helps
 
Once you have the Steam game downloaded -- you can just "run" the Steam game from the command line - like:

Example: Run the Steam installed (made up) game "ZoneOfZoran"

Code:
shell$ cd $HOME/.steam/steam/steamapps/common/ZoneOfZoran
shell$ wine ZoneOfZoran.exe
 
CShell, thanks for the info! I have been tinkering around a bit with wine-proton. I haven't been able to get audio working in Steam games on my main system. I tried a known good game in Hotline Miami, but it still has no audio. (The game otherwise runs fine, though.) A thought occurred to me that perhaps the issue is with my using Wayland. So I installed Steam via the same method on my laptop, which uses X11 and XFCE. Sure enough, the audio works on Hotline Miami. However, switching to X11 KDE session on my main system yields no change in results; games still have no audio.
 
The only audio-related message I get in the terminal is the following:
Code:
[1019/104240.096597:WARNING:audio_manager_linux.cc(53)] Falling back to ALSA for audio output. PulseAudio is not available or could not be initialized.
If this is the case and the Linux binary runs, only without sound, going the Linuxulator route with ALSA-OSS seems more promising than trying to get Wine audio working. If you chroot into the Linux installation and run something like cat /dev/urandom|aplay, do you get any audio output? If not, have you tried copying /usr/local/etc/alsa/conf.d/50-oss.conf (from audio/alsa-plugins) from your system root to /etc/alsa/ within the Linux chroot? Depending on the result there are a couple of other tricks that can be tried.
 
The game in question is DUSK, and I believe I am running the Linux version. I can only get it to run if I set the compatibility to either "LSU chroot with legacy Steam Runtime" or "LSU chroot with Steam Runtime 3 (Sniper)." Either way, there is no audio coming from the game.
I'm not aware of any sound issues with Unity games. Check that hw.snd.default_unit is pointing to the device you expect.

The only audio-related message I get in the terminal is the following:
Code:
[1019/104240.096597:WARNING:audio_manager_linux.cc(53)] Falling back to ALSA for audio output. PulseAudio is not available or could not be initialized.
That is a message from the steamwebhelper binary.
 
I'm not aware of any sound issues with Unity games. Check that hw.snd.default_unit is pointing to the device you expect.
That did it! I was manually switching to the correct device in the tray on KDE, but adding the modification to /etc/sysctl.conf and rebooting did the trick. Thank you!
 
Back
Top