* Prevent linux crash if OpenAL cannot be loaded

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8311 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
sha..rd 14 years ago
parent d63fcf3e23
commit caaf407546
  1. 4
      engine/src/lwjgl-oal/com/jme3/audio/lwjgl/LwjglAudioRenderer.java

@ -167,6 +167,10 @@ public class LwjglAudioRenderer implements AudioRenderer, Runnable {
logger.log(Level.SEVERE, "Failed to load audio library", ex);
audioDisabled = true;
return;
} catch (UnsatisfiedLinkError ex){
logger.log(Level.SEVERE, "Failed to load audio library", ex);
audioDisabled = true;
return;
}
ALCdevice device = AL.getDevice();

Loading…
Cancel
Save