Page 1 of 1

Sound not working on Linux 64-bit OpenSUSE 13.1

Posted: Sun Sep 20, 2015 11:21 pm
by cjvJQ
Hello, Everyone,

I just bought FTL: Advanced Edition through the Humble Bundle. I'm running the game in Linux (OpenSUSE 13.1 64-bit, Mate desktop environment), and am not getting any sound from it. I've also tried running the game through Steam, and am not getting any sound there, either.

I've done a lot of searching just now for similar issues, but nothing I've found has solved the problem on my system, so I'm posting here.

When I run FTL from the terminal, I get the following output:

Code: Select all

Loading Arch = amd64
Initializing Crash Catcher...
Initializing Video
Video Initialized
Opengl version = 3.0 Mesa 9.2.5
Starting audio library...
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
BASS_Init: Failed to init BASS Library!
BAS_INIT: 3
Resource Preload: 2.207
Loading text....
Initializing animations...
Animations Initialized!
Loading Ship Blueprints....
Blueprints Loaded!
Initializing Sound Data....
Generating world...
Loading achievements...
Loading score file...
Running Game!


In my Sound Preferences menu on my computer (where programs that are currently producing sound are listed), FTL doesn't show up. To confirm, sound (which uses PulseAudio) is running fine overall on my computer -- only FTL is having a problem.

I downloaded a different version of BASS from here (linked from here), to no avail. I also tried following the suggestion here to change the "Profile Setting" in my system's sound settings (even though the sound is otherwise working correctly); unfortunately, that didn't help, either.

Does anyone here have any other ideas? I'd be grateful for any help!

Re: Sound not working on Linux 64-bit OpenSUSE 13.1

Posted: Mon Sep 21, 2015 2:20 am
by cjvJQ
Just a follow-up, in case anyone like me finds this in the future: This seems to be a problem with FTL using alsa, which can have a problem when pulseaudio is already running (although pulseaudio runs on top of alsa, to my understanding). To address this (until I come across a way to get the two to just work together):

  • In a terminal, do

    Code: Select all

    ps ax | grep pulseaudio
    , and note that pulseaudio is probably running (perhaps with two processes). Then do

    Code: Select all

    pulseaudio --kill
    , and then

    Code: Select all

    ps ax | grep pulseaudio
    . If pulseaudio has auto-restarted, we need to get it to stop doing that (following the top of http://www.linuxplanet.com/linuxplanet/tutorials/7130/2):
  • As root, edit

    Code: Select all

    /etc/pulse/client.conf
    :
  • Make

    Code: Select all

    autospawn = no

  • POSSIBLY Uncomment / edit

    Code: Select all

    daemon-binary...
    so that it reads

    Code: Select all

    daemon-binary = /usr/bin/true
    . I'm not sure whether this is necessary, though.
  • Now try `pulseaudio --kill` and then `ps ax | grep pulseaudio` again -- pulseaudio should stay killed now. To re-start it later, use `pulseaudio --start`.
  • Run

    Code: Select all

    speaker-test
    , which will test alsa's settings. If you don't hear anything, or get an error message, create a file called ~/.asoundrc with this code:

    Code: Select all

    pcm.!default {
       type hw
       card 2
    }

    ctl.!default {
       type hw
       card 1
    }

    You may need to play with the card numbers, using the output from

    Code: Select all

    cat /proc/asound/cards
    as a guide. You'll know that it's working when you run

    Code: Select all

    speaker-test
    again and hear noise.
  • You can start pulseaudio again at this point.
  • Run FTL with

    Code: Select all

    pasuspender ./FTL
    (where ./FTL is the script to launch FTL) in order to temporarily suspend pulseaudio.

This seems really overly-complicated; I'm still curious to hear if anyone who reads this has come upon a quicker solution.

Re: Sound not working on Linux 64-bit OpenSUSE 13.1

Posted: Mon Sep 21, 2015 8:33 am
by shadowcrust
I think it could be related to a problem discussed (and worked around) here: viewtopic.php?f=9&t=17208

Specifically, installing libbass from this link seems to help: http://www.un4seen.com/forum/?topic=868 ... #msg106377

Haven't tried it myself, as I run an old version of Debian.