From 915b0b8c612aa070fab7439d871862e54a1c1162 Mon Sep 17 00:00:00 2001 From: shadowislord Date: Thu, 20 Nov 2014 20:24:23 -0500 Subject: [PATCH] Replace AtomicBoolean with Object as the audio thread lock --- .../src/main/java/com/jme3/audio/openal/ALAudioRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jme3-core/src/main/java/com/jme3/audio/openal/ALAudioRenderer.java b/jme3-core/src/main/java/com/jme3/audio/openal/ALAudioRenderer.java index 501c1645e..7f136d456 100644 --- a/jme3-core/src/main/java/com/jme3/audio/openal/ALAudioRenderer.java +++ b/jme3-core/src/main/java/com/jme3/audio/openal/ALAudioRenderer.java @@ -76,7 +76,7 @@ public class ALAudioRenderer implements AudioRenderer, Runnable { // Fill streaming sources every 50 ms private static final float UPDATE_RATE = 0.05f; private final Thread decoderThread = new Thread(this, "jME3 Audio Decoding Thread"); - private final AtomicBoolean threadLock = new AtomicBoolean(false); + private final Object threadLock = new Object(); private final AL al; private final ALC alc;