From caaf407546760f8477cc9e212ad972fb95ac9355 Mon Sep 17 00:00:00 2001 From: "sha..rd" Date: Tue, 27 Sep 2011 01:13:16 +0000 Subject: [PATCH] * Prevent linux crash if OpenAL cannot be loaded git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8311 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../lwjgl-oal/com/jme3/audio/lwjgl/LwjglAudioRenderer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/src/lwjgl-oal/com/jme3/audio/lwjgl/LwjglAudioRenderer.java b/engine/src/lwjgl-oal/com/jme3/audio/lwjgl/LwjglAudioRenderer.java index f8fda27c6..494987d10 100644 --- a/engine/src/lwjgl-oal/com/jme3/audio/lwjgl/LwjglAudioRenderer.java +++ b/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();