1. If you have a problem and need help, create a new thread with a title that briefly describes the problem.
    Do not use titles like 'Help!' or 'I have a problem!'
    Dismiss Notice
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

[FIX] [Linux] No sound at all

Discussion in 'General Help' started by 9238, Jun 2, 2011.

  1. kiro

    kiro Garde KAG Donator Tester

    Messages:
    241
    I get this message :​

    Code:
    sudo apt-get install lib32asound2-dev
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package lib32asound2-dev is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    
    E: Package 'lib32asound2-dev' has no installation candidate
     
  2. kiro

    kiro Garde KAG Donator Tester

    Messages:
    241
    I installed "libasound2-dev" directly in the Software Center and it worked :D
     
    julbar25, Mazey and Comrde like this.
  3. FarmerJohn

    FarmerJohn Bison Rider

    Messages:
    21
    Just accidentally got sound. Nothing was updated. Log sample:
    Code:
    irrKlang sound library version 1.3.0
    
    ALSA lib pcm.c:2105:(snd_pcm_open_conf) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
    
    Using ALSA driver
    
    [0] Sound engine started
    
    Game version 228
    
    [0] Precaching files...
    
    Precaching files.
    As we can see nothing is changed for me. It seems that alsa conflicts with my pulseaudio but in fact KAG is the only program that has that problem. When I had sound, my amarok was silent and could not play music. Pulseaudio mixer showed no sound streams.
     
  4. Recs

    Recs Shipwright

    Messages:
    7
    I just bought the game to play it mostly on linux machines. I hope this gets fixed in future versions. keep up the good work.

    By the way, installing the libasound-dev and lib32asound-dev packages in ubuntu 32/64 bit didn't solve the issue for me, and I'm not uninstalling pulse and switcing back to alsa only for kag as suggested by hagal.

    There's an edit button. Don't double post - Beef
     
  5. FarmerJohn

    FarmerJohn Bison Rider

    Messages:
    21
    I've found the solution for me. The problem with pulseaudio and padsp does not help. My (hopefully temporary) solution is to stop (not pause) all the music, kill flash player (most of the time it's running somewhere). After that I can play KAG with sound but without my music (I use Amarok but that seems not important).

    Update: music can be paused.
     
  6. Recs

    Recs Shipwright

    Messages:
    7
    thanks, starting the game without firefox open (skype seems fine) makes the sound work. also using it after launching the game doesn't seem to give problems.

    I still have the libasound libraries installed, don't know if you need them or not.

    EDIT: yes, the extra libraries are still required.
     
  7. Krux

    Krux Shipwright

    Messages:
    18
    I have all libraries installed, and no sound either. But I do know that in a much earlyer development of the game there was Sound on my machine.
     
  8. Garreth

    Garreth Catapult Fodder

    Messages:
    50
    https://bugs.kag2d.com/view.php?id=320 :

    type in console:
    locate libasound.so
    In ubuntu you will find:
    /usr/lib/i386-linux-gnu/libasound.so.2
    /usr/lib/i386-linux-gnu/libasound.so.2.0.0

    Now navigate to /usr/lib/i386-linux-gnu/ and make a symbolic link to libasound.so.2 in the folder /usr/lib/​
     
  9. Krux

    Krux Shipwright

    Messages:
    18
    thanks a lot finally it worked. On my 64 bit machine I have to say, using the 64 bit version did not work, I had to use those libraries in /usr/lib32/

    /usr/lib/x86_64-linux-gnu/libasound.so
    /usr/lib/x86_64-linux-gnu/libasound.so.2
    /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0
    /usr/lib32/libasound.so
    /usr/lib32/libasound.so.2
    /usr/lib32/libasound.so.2.0.0
     
  10. mofo

    mofo Catapult Fodder

    Messages:
    1
    The symlink solution didn't work for me in Ubuntu 12.04 so what I did was download irrKlang 1.4.0 and replace the original file in KAG's folder, as you can see in the changelog there has been a bug fix for this issue. http://www.ambiera.com/irrklang/changes.html
    Works like a charm.
     
    kalashnikov likes this.
  11. kalashnikov

    kalashnikov Bison Rider

    Messages:
    29
    Code:
    kalashnikov@kalashnikov-PC:~$ locate libasound.so
    /usr/lib/libasound.so
    /usr/lib/libasound.so.2
    /usr/lib/i386-linux-gnu/libasound.so.2
    /usr/lib/i386-linux-gnu/libasound.so.2.0.0
    /usr/lib/x86_64-linux-gnu/libasound.so
    /usr/lib/x86_64-linux-gnu/libasound.so.2
    /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0
    /usr/lib32/libasound.so
    /usr/lib32/libasound.so.2
    /usr/lib32/libasound.so.2.0.0
    
    Code:
    Warning: The library version of irrKlang (1.4.0) does not match the version the application was compiled with (1.3.0). This may cause problems.
    irrKlang sound library version 1.4.0
    ALSA lib ../../src/conf.c:3314:(snd_config_hooks_call) Cannot open shared library libasound_module_conf_pulse.so
    ALSA lib ../../../src/pcm/pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default
    Error opening PCM device for ALSA
    [12:34:09] Sound engine started
    Game version 394
    
    :QQ:
     
  12. lavalord

    lavalord Haxor Staff Alumni Donator Tester

    Messages:
    672
    ok guys listen up
    1. logs tell us nothing these days if u want to provide better info u need to run kag in debug. if you don't have gdb type:

    If you're running debian-alike (like Ubuntu, Debian, etc), you can do this with
    sudo apt-get install gdb

    CentOS:
    yum install gdb

    ps i will update this to show you how to run kag in debug when i get home

    2. Kag (server especially) is no longer supported by older OS like CentOS because it has an outdated libsdct++ so.6 (this CANT be updated as CenOS doesn't support newer versions). So i suggest changing ur distro to ubuntu.
     
  13. numidark

    numidark Catapult Fodder

    Messages:
    5
    For any problem with pulseaudio, use : gstreamer-properties and chose ALSA in sound section ;)
     
  14. Medivend

    Medivend Catapult Fodder

    Messages:
    6
    Lubuntu 11.10, AMD Athlon 1800+, K7S41GX
    installed libasound2-dev and got sound.
    Thanx!
     
  15. Comrde

    Comrde Shipwright

    Messages:
    20
    I had this issue on Ubuntu 12.10.

    Went into the software center and searched "libasound2-dev". Downloaded that and the sound works fine. Thanks to whom ever mentioned that.
     
    UnnamedPlayer likes this.
  16. ogresav

    ogresav Catapult Fodder

    Messages:
    3
    (for Ubuntu 12.10 64-bit)
    After trying everything everyone said, I still had no sound.

    This finally worked for me:
    sudo apt-get install libasound2-dev lib32asound2-dev
    sudo ln -s /usr/lib/i386-linux-gnu/alsa-lib /usr/lib32

    Make sure libasound.so etc are in /usr/lib32, and that the alsa-lib is as well.

    good luck
     
    silidur, Nananas and kaizokuroof like this.
  17. silidur

    silidur Builder Stabber

    Messages:
    6
    (For Fedora 19)
    After trying everything everyone said, I still had no sound.

    This finally worked for me:
    sudo yum install libasound_module_pcm_pulse.so

    Make sure libasound_module_pcm_pulse.so are in /usr/lib/alsa-lib/

    PD: sorry for the CP @ogresav :D
     
  18. allknowingfrog

    allknowingfrog Bison Rider

    Messages:
    549
    Fedora? Hardcore.
     
  19. Hitman4000

    Hitman4000 Catapult Fodder

    Messages:
    4
    You need libasound2-plugins:186 ..

    Then it will work. I ran into the same error & nothing worked till I installed that
     
  20. lolmaus

    lolmaus Catapult Fodder

    Messages:
    5
    I'm on Kubuntu 13.10 and there's on `lib32asound2-dev` package in repos.

    I resolved the issue with this command:

    Code:
    sudo apt-get install libasound2-dev:i386