Linux - No sound with pulse on Arch Linux
SirCmpwn
Colorado Join Date: 2013-10-31 Member: 188891Members
Hi there! I'm using a fully updated install of Arch Linux to play NS2 via Steam. I'm using pulse for audio. When I launch NS2, I hear no sound, and the log file (with irrelevant things removed) shows:
My sound card is an Asus Xonar DX, set up for 5.1 surround. Sound works great in other apps. Additionally, in the in-game settings, I am unable to select a sound device and I see no microphone output.
Some extra details:
PulseAudio/libpulse 4.0-6
Nvidia GTX 670
i3 window manager
64-bit system
Date: 10/31/2013 Time: 01:28:53 AM: -------------------------------------------------------------- Build 259 Arch Linux x86_64 Steam initialized Num displays: 2 OpenGL 4.3.0 NVIDIA 325.15 initialized (NVIDIA Corporation GeForce GTX 670/PCIe/SSE2) GLSL version 4.30 NVIDIA via Cg compiler ARB_texture_storage extension present Error: eventSystem->init (Error initializing output device. ) Error: SoundSystem::Initialize - Failed to initialize FMOD event system Sound disabled Loading config://ConsoleBindings.json Error: Couldn't load 'sound/NS2.fev' Error: Couldn't load 'sound/NS2.fev/alien/infestation/build' (project didn't exist) Error: CreateDSP:createDSPByType (This command failed because System::init or System::setDriver was not called. ) Error: CreateDSP:createDSPByType (This command failed because System::init or System::setDriver was not called. ) Error: CreateDSP:addDSP (An invalid object handle was used. ) Error: CreateDSP:addDSP (An invalid object handle was used. ) Error: SetDSPFloatParameter(getParameterInfo) (An invalid object handle was used. ) Error: SetDSPFloatParameter(getParameterInfo) (An invalid object handle was used. ) Error: SetDSPFloatParameter(getParameterInfo) (An invalid object handle was used. ) Error: SetDSPFloatParameter(getParameterInfo) (An invalid object handle was used. ) Error: CreateDSP:createDSPByType (This command failed because System::init or System::setDriver was not called. ) Error: CreateDSP:createDSPByType (This command failed because System::init or System::setDriver was not called. ) Error: CreateDSP:addDSP (An invalid object handle was used. ) Error: CreateDSP:addDSP (An invalid object handle was used. ) Error: SetDSPActive:setBypass() (An invalid object handle was used. ) Error: SetDSPFloatParameter(getParameterInfo) (An invalid object handle was used. ) Error: Couldn't load 'sound/NS2.fev' Error: Couldn't load 'sound/NS2.fev/alien/infestation/build' (project didn't exist)
My sound card is an Asus Xonar DX, set up for 5.1 surround. Sound works great in other apps. Additionally, in the in-game settings, I am unable to select a sound device and I see no microphone output.
Some extra details:
PulseAudio/libpulse 4.0-6
Nvidia GTX 670
i3 window manager
64-bit system
Comments
I'm going to be trying NS2 under Pulse and Alsa in a few hrs, I too am interested in knowing what's going wrong.
[Edit]
Have you tried manually selecting the correct output device?
Error: eventSystem->init (Error initializing output device. )
And
Sound disabled
Seem a lot like the game is unable to communicate with your sound card. Since sound is pretty important you are probably going to tweek your sound settings.
you can also try running steam with:
SDL_AUDIODRIVER=alsa steam
I would also try pulseaudio and not just pulse
I am not entirely sure how to proceed from here. My linux sound foo is not what it should be here.
However, to aid you in your quest I can tell you that ns2 is using libsdl2, this means that you may have success with fixes for stuff like tf2.
Hope it helps. Didn't try it myself, I only used pulse in its default configuration so it was the default alsa device.
Removed my long rant and now I have more valuable info to put here.
I used the "ALSA/dmix without grabbing hardware device" instructions here: https://wiki.archlinux.org/index.php/PulseAudio#ALSA.2Fdmix_without_grabbing_hardware_device
Now I'm able to run both Mangler and Natural Selection 2 with sound working. However, I cannot run them at the same time without ALSA and Pulse fighting over who gets to put sound out through the device.
Really what needs to happen here is I need a way to make Natural Selection 2 work on pulseaudio. So far, I've been completely unsuccessful. Any hints?
Yes it looks like I'm getting the same type of thing as the OP. "Sound disabled"
Time: 14:32:03:
Build 259
Arch Linux x86_64
Steam initialized
Num displays: 1
OpenGL 4.3.0 NVIDIA 325.15 initialized (NVIDIA Corporation GeForce GTX 550 Ti/PCIe/SSE2)
GLSL version 4.30 NVIDIA via Cg compiler
ARB_texture_storage extension present
Error: eventSystem->init (Error initializing output device. )
Error: SoundSystem::Initialize - Failed to initialize FMOD event system
Sound disabled
Loading config://ConsoleBindings.json
Error: Couldn't load 'sound/NS2.fev'
Error: Couldn't load 'sound/NS2.fev/alien/infestation/build' (project didn't exist)
Loading config://FavoriteServers.json
Loading config://HistoryServers.json
Error: CreateDSP:createDSPByType (This command failed because System::init or System::setDriver was not called. )
Error: CreateDSP:createDSPByType (This command failed because System::init or System::setDriver was not called. )
Error: CreateDSP:addDSP (An invalid object handle was used. )
Error: CreateDSP:addDSP (An invalid object handle was used. )
Error: SetDSPFloatParameter(getParameterInfo) (An invalid object handle was used. )
Error: SetDSPFloatParameter(getParameterInfo) (An invalid object handle was used. )
Error: SetDSPFloatParameter(getParameterInfo) (An invalid object handle was used. )
Error: SetDSPFloatParameter(getParameterInfo) (An invalid object handle was used. )
Error: CreateDSP:createDSPByType (This command failed because System::init or System::setDriver was not called. )
Error: CreateDSP:createDSPByType (This command failed because System::init or System::setDriver was not called. )
Error: CreateDSP:addDSP (An invalid object handle was used. )
Error: CreateDSP:addDSP (An invalid object handle was used. )
Error: SetDSPActive:setBypass() (An invalid object handle was used. )
Error: SetDSPFloatParameter(getParameterInfo) (An invalid object handle was used. )
Error: Couldn't load 'sound/NS2.fev'
Error: Couldn't load 'sound/NS2.fev/alien/infestation/build' (project didn't exist)
Cooked mesh with 4794 faces, 3566 vertices
It's worth noting that, just like the OP, I have also tried running Steam with SDL_AUDIODRIVER set to both alsa and pulse.
I'm also back to running under Gnome 3 with Pulse and ALSA installed, using the pulseaudio-alsa package that is a dependency of Gnome 3. I'm no longer using the dmix option. Either I'll get NS2 to work with Pulse, or I'll keep switching over to my Windows install to play the game.
Running Arch and stopped having sound since a few days. TF2 or Dota 2 work perfectly. So I blamed NS2, at first. But there is more.
Didn't do anything special other then running periodically updates (pacman -Syu).
As I said, sound worked before in NS2.
Hey! That worked for me too! Thanks!
... Once i remember my login details again
Unfortunately, I've the same problem of missing sound.
Neither SDL_AUDIODRIVER=alsa/pulse/pulseaudio helps
I also tried to put that into ~/.asoundrc: But it is no effect.
I also (as authors above) noticed In steam log, but I also noticed that strange thing a bit earlier in the log:
So, I bet, NS2 is totally doesn't want to work with pulseaudio...
Is it any chance developers reading this thread and hear our pry to add PA support?