Replace AtomicBoolean with Object as the audio thread lock

This commit is contained in:
shadowislord 2014-11-20 20:24:23 -05:00
parent 2ec7366fde
commit 915b0b8c61

View File

@ -76,7 +76,7 @@ public class ALAudioRenderer implements AudioRenderer, Runnable {
// Fill streaming sources every 50 ms // Fill streaming sources every 50 ms
private static final float UPDATE_RATE = 0.05f; private static final float UPDATE_RATE = 0.05f;
private final Thread decoderThread = new Thread(this, "jME3 Audio Decoding Thread"); 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 AL al;
private final ALC alc; private final ALC alc;