Jump to content

[FIXED / WORKAROUNDED?] no audio (system-wide pulseaudio)


blorby
  • Branch: Live Branch Version: Linux Pending

Hi,

For some unknown reasons, when trying to play ONI with a system-wide pulseaudio, it fails to initialize the sound.

The console doesn't give a lot of useful information.

When switching back to the standard user pulseaudio, the sound is OK.

I suspect there is either some mismatch between my system and the embedded fmod or a messy update either on my side or on unity's side. The sound worked fine in the past but i can't remember when nor when it got broken.

ONI is not the only game affected, Armello is affected too (also using fmod & unity, through steam), and so seems to be don't starve together.

 

Starting app 457140
Installing breakpad exception handler for appid(steam)/version(1556574584)
>>> Adding process 17268 for game ID 457140
GameAction [AppID 457140, ActionID 1] : LaunchApp changed task to WaitingGameWindow with ""
GameAction [AppID 457140, ActionID 1] : LaunchApp changed task to Completed with ""
ERROR: ld.so: object '/home/blorby/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/blorby/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 17283 for game ID 457140
Found path: /home/blorby/.local/share/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded
Mono path[0] = '/home/blorby/.local/share/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded_Data/Managed'
Mono config path = '/home/blorby/.local/share/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded_Data/Mono/etc'
Preloaded 'ScreenSelector.so'
Preloaded 'libCSteamworks.so'
Preloaded 'libSimDLL.so'
Preloaded 'libfmod.so'
Preloaded 'libfmodL.so'
Preloaded 'libfmodstudio.so'
Preloaded 'libfmodstudioL.so'
Preloaded 'libsdkencryptedappticket.so'
Preloaded 'libsteam_api.so'
Display 0 'PL2783Q 27"': 2560x1440 (primary device).
Logging to /home/blorby/.config/unity3d/Klei/Oxygen Not Included/Player.log
JS method call Messaging.PostMessage with 4 arguments
JS method call SharedConnection.SendMsgAndAwaitResponse with 3 arguments
Installing breakpad exception handler for appid(gameoverlayui)/version(20190429205819)
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
ERROR: ld.so: object '/home/blorby/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.8/work/alsa-lib-1.1.8/src/pcm/pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.8/work/alsa-lib-1.1.8/src/pcm/pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
[0601/173240.980405:INFO:crash_reporting.cc(265)] Crash reporting enabled for process: renderer
>>> Adding process 17323 for game ID 457140
>>> Adding process 17325 for game ID 457140

 

default.pa

client.conf

daemon.conf

system.pa

Player.log


Steps to Reproduce
Use system-wide pulseaudio: pulse 15268 15.6 0.0 603272 28840 ? S



User Feedback


I may have finally worked something out (fix or workaround, not really sure as i'm not an ALSA / pulse expert).

I added an alsa configuration file ( system-wide /etc/asound.conf or user ~/.asoundrc ) with the following content :

pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.default pulse
ctl.default pulse

Maybe there is something crazy about unity/fmod trying to get direct access to the alsa devices, which would conflict with pulseaudio, if pulse already got its hand on the device (that is, some sound was actually played)

My devices don't have a hardware mixer, so only one client at a time is supported. That could explain the issue.

Anyway, for now, sound seems OK on all previously broken games (ONI, armello, maybe others)

Edited by blorby

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...