Replace AtomicBoolean with Object as the audio thread lock

experimental
shadowislord 10 years ago
parent 2ec7366fde
commit 915b0b8c61
  1. 2
      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;

Loading…
Cancel
Save