[Linux] No Sound (dev solution inside)

    Joined
    Jan 22, 2014
    Messages
    1,047
    Reaction score
    299
    Description:

    The game doesn't make a sound on Linux. This is a known problem, the workarounds are also known.



    Workaround:

    People suggested moving the appropriate libraries from the /path/to/StarMade/native/linux directory to somewhere below /usr/lib. I don't like that. However, calling the game like follows will enable sound:


    $ export LD_LIBRARY_PATH="/path/to/StarMade/native/linux:$LD_LIBRARY_PATH"
    $ java -jar StarMade-Starter.jar





    Solution:

    The problem obviously lies with the environment variables. The StarMade launcher will have to call the game with an adjusted LD_LIBRARY_PATH, which can, for instance, be achieved with the following method: http://docs.oracle.com/javase/6/docs/api/java/lang/Runtime.html#exec%28java.lang.String,%20java.lang.String[]%29