Catch loading OpenAL libraries in Linux Bug

So, after a bit of debugging… i found a bug in com.jme3.system.Natives.

In fact its all about that no openal library is loaded when Platform ist either Linux or Linux64…



So… here you are Momoko_Fan (or any other Contributor with Contributor rights… :D)



Index: Natives.java
--- Natives.java Base (BASE)
+++ Natives.java Locally Modified (Based On LOCAL)
@@ -158,35 +158,26 @@
                 }
                 break;
             case Linux64:
-                if (needLWJGL){
-                    extractNativeLib("linux", "lwjgl64", true);
-                }
                 if (needJOGL){
                     extractNativeLib("linux64", "jogl_awt", false);
                     extractNativeLib("linux64", "jogl", true);
                 }
-
-                if (needJOAL)
-                    extractNativeLib("linux64", "joal_native", true);
-
-                if (needGG)
-                    extractNativeLib("linux64", "gluegen-rt", false);
-
-                if (needJInput)
-                    extractNativeLib("linux", "jinput-linux64", true);
-
+                if (needJOAL)   extractNativeLib("linux64", "joal_native",    true);
+                if (needGG)     extractNativeLib("linux64", "gluegen-rt",     false);
+                if (needLWJGL)  extractNativeLib("linux", "lwjgl64",        true);
+                if (needOAL)    extractNativeLib("linux", "openal64",       true);
+                if (needJInput) extractNativeLib("linux", "jinput-linux64", true);
                 break;
             case Linux32:
                 if (needJOGL){
                     extractNativeLib("linux32", "jogl_awt", false);
                     extractNativeLib("linux32", "jogl", true);
                 }
-
-                if (needLWJGL)  extractNativeLib("linux",   "lwjgl",       true);
-                if (needJOAL)   extractNativeLib("linux32", "joal_native", true);
-                if (needGG)     extractNativeLib("linux32", "gluegen-rt",  false);
-                if (needJInput) extractNativeLib("linux", " jinput-linux", true);
-
+                if (needJOAL)   extractNativeLib("linux32", "joal_native",  true);
+                if (needGG)     extractNativeLib("linux32", "gluegen-rt",   false);
+                if (needLWJGL)  extractNativeLib("linux", "lwjgl",        true);
+                if (needOAL)    extractNativeLib("linux", "openal",       true);
+                if (needJInput) extractNativeLib("linux", "jinput-linux", true);
                 break;
             case MacOSX_PPC32:
                 if (needLWJGL){

Yeah we know about this :slight_smile: It's not a bug… See this thread: http://www.jmonkeyengine.com/forum/index.php?topic=13909.0

We will fix it soon

Oooooooooops… I'm sorry :smiley:

Fixed in local copy.