Replace AtomicBoolean with Object as the audio thread lock
This commit is contained in:
parent
2ec7366fde
commit
915b0b8c61
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user