Sound on Linux

    Joined
    Jun 16, 2013
    Messages
    61
    Reaction score
    20
    Since this information is on the old site, it makes sense to move it over to the new one. Basically, this is just a quick thread regarding no sound in Ubuntu and related operating systems.

    The workaround looks like this:
    Code:
    export LD_LIBRARY_PATH="/path/to/StarMade/native/linux:$LD_LIBRARY_PATH"
    java -jar StarMade-Starter.jar
    This goes straight into the terminal, and adjusts an environment variable to route the sound to the right place. The second command is what launches the game. Adjust the "/path/to" accordingly.

    I'm mostly just posting this for myself and my fellow Linux users, as I know that once the old site is gone I will forget this method entirely otherwise :P Hope it helps people.
     
    Joined
    Jan 22, 2014
    Messages
    1,047
    Reaction score
    299
    Actually, the issue on the tracker just got updated today. Its status was changed to Resolved, meaning that it will probably be fixed in the next dev build/release. :)
     
    Joined
    Dec 2, 2013
    Messages
    52
    Reaction score
    6
    I use a bash script to launch starmade on my linux box running Fedora 20, and sound works using this script. The OP's code's export has an error in it. The code below works great.

    Code:
    #!/bin/bash
    # runs the starmade-starter executable
    # but first exports the sound library
    
    # export the library that is required for sound on linux
    echo Exporting Sound Lib
    export LD_LIBRARY_PATH="$PWD/StarMade/native/linux:$LD_LIBRARY_PATH"
    
    # now start starmade
    echo Starting StarMade
    java -jar StarMade-Starter.jar