[Solved] No sound in Ubuntu (linux) 13.04

    Joined
    Jun 24, 2013
    Messages
    5
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    I'm not getting any sound when I play StarMade. I think the problem is my openal. I have libopenal installed. Here is the relevant portion of the log:



    [Jun 25, 2013 12:27:31 PM] STDOUT: [OUT] Starting up SoundSystem...
    [Jun 25, 2013 12:27:31 PM] STDOUT: [OUT] Initializing LWJGL OpenAL
    [Jun 25, 2013 12:27:31 PM] STDOUT: [OUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
    [Jun 25, 2013 12:27:31 PM] STDOUT: [OUT] Error in class 'LibraryLWJGLOpenAL'
    [Jun 25, 2013 12:27:31 PM] STDOUT: [OUT] Unable to initialize OpenAL. Probable cause: OpenAL not supported.
    [Jun 25, 2013 12:27:31 PM] STDOUT: [OUT] ERROR MESSAGE:
    [Jun 25, 2013 12:27:31 PM] STDOUT: [OUT] Could not locate OpenAL library.
    [Jun 25, 2013 12:27:31 PM] STDOUT: [OUT] STACK TRACE:
    [Jun 25, 2013 12:27:31 PM] STDOUT: [OUT] org.lwjgl.openal.AL.create(AL.java:151)
    [Jun 25, 2013 12:27:31 PM] STDOUT: [OUT] org.lwjgl.openal.AL.create(AL.java:102)
    [Jun 25, 2013 12:27:31 PM] STDOUT: [OUT] org.lwjgl.openal.AL.create(AL.java:201)
    [Jun 25, 2013 12:27:31 PM] STDOUT: [OUT] paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)
    [Jun 25, 2013 12:27:31 PM] STDOUT: [OUT] paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
    [Jun 25, 2013 12:27:31 PM] STDOUT: [OUT] paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
    [Jun 25, 2013 12:27:31 PM] STDOUT: [OUT] paulscode.sound.CommandThread.run(CommandThread.java:121)
    [Jun 25, 2013 12:27:32 PM] STDOUT: [OUT] ERROR MESSAGE:
    [Jun 25, 2013 12:27:32 PM] STDOUT: [OUT] Could not locate OpenAL library.
    [Jun 25, 2013 12:27:32 PM] STDOUT: [OUT] Starting up SoundSystem...
    [Jun 25, 2013 12:27:32 PM] STDOUT: [OUT] Switching to No Sound
    [Jun 25, 2013 12:27:32 PM] STDOUT: [OUT] (Silent Mode)


    !!!!!!!!!!!!Solution!!!!!!!!!!!!

    For those with 64 bit linux computers:

    sudo cp ~/StarMade/native/linux/libopenal64.so /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libopenal64.so



    For those with 32 bit linux computers:

    sudo cp ~/StarMade/native/linux/libopenal.so /usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/ibopenal.so
     
    Joined
    Jun 24, 2013
    Messages
    5
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    Same problem here. It seems to occur under both 32bit and 64bit Linux. I\'ve got libopenal1 installed and the libopenal.so and libopenal64.so are both downloaded to StarMade/native/linux.

    EDIT: Nevermind, just found the bug fix.

    Copy the libopenal.so or libopenal64.so from StarMade/native/linux (depending on your architecture) to your java library. If you use OpenJDK 7 with 32-bit, it would normally be /usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386. Then everything should run fine :)
     
    Joined
    Jun 24, 2013
    Messages
    5
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    Do you mean copying the libopenal64.so that is in the starmade/native/linux/x64 folder to the /usr/lib/jvm... folder?
     
    Joined
    Jun 24, 2013
    Messages
    5
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    Fix worked! Thanks!

    For those with 64 bit linux computers:

    sudo cp ~/StarMade/native/linux/libopenal64.so /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libopenal64.so



    For those with 32 bit linux computers:

    sudo cp ~/StarMade/native/linux/libopenal.so /usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/ibopenal.so
     
    Joined
    Aug 26, 2013
    Messages
    4
    Reaction score
    0
    the jvm folder is linked to root and its not giving me access to change it or add anything
     
    Joined
    Aug 26, 2013
    Messages
    4
    Reaction score
    0
    never mind all i had to do to get access was push alt f2 then tipe gksu nautilus

    Code:
    gksu nautilus
    Code:
    gksu nautilus
     
    Joined
    Aug 26, 2013
    Messages
    4
    Reaction score
    0
    bit of a typeo there whe i copied the comand and spelled type wrong
     
    Joined
    Jun 23, 2013
    Messages
    208
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    Your fix didn\'t work for me, I did the command, the file is now in the correct directory, but I still get no sound. There is sound enabled, have changed the volume, disabled and re-enabled, maxed out volume on my pc and in game, but still no sound. Anyone know another fix? I\'m running debian.
     
    Joined
    Jan 22, 2014
    Messages
    1,047
    Reaction score
    299
    Try this: http://star-made.org/content/linux-no-sound-dev-solution-inside
     
    Joined
    Jun 23, 2013
    Messages
    208
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    I had stopped playing, and when I tested I assumed that the pistol would make a sound... whoops. Went in game later and flipped out all excited when I shot my ship and blasted my eardrums out xD

    Thank you for your help though :)