summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/openal/av
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-07-08 10:50:52 +0200
committerSven Gothel <[email protected]>2014-07-08 10:50:52 +0200
commit7d0c81f28d44179c7dafeeff1f3787f8aec622aa (patch)
tree3edffe7baa88738f1763d7cb446c72f0d755901e /src/jogl/classes/jogamp/opengl/openal/av
parent73d2a436f92e360126167d9ce09b3d9637204921 (diff)
Findbugs.increment_volatile: Use AtomicInteger or add comment that operation is safe!
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/openal/av')
-rw-r--r--src/jogl/classes/jogamp/opengl/openal/av/ALAudioSink.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/jogamp/opengl/openal/av/ALAudioSink.java b/src/jogl/classes/jogamp/opengl/openal/av/ALAudioSink.java
index ac55fcf98..330c4f044 100644
--- a/src/jogl/classes/jogamp/opengl/openal/av/ALAudioSink.java
+++ b/src/jogl/classes/jogamp/opengl/openal/av/ALAudioSink.java
@@ -737,7 +737,7 @@ public class ALAudioSink implements AudioSink {
throw new RuntimeException(getThreadName()+": ALError "+toHexString(alErr)+" while queueing buffer "+toHexString(alBufferNames[0])+". "+this);
}
alBufferBytesQueued += byteCount;
- enqueuedFrameCount++;
+ enqueuedFrameCount++; // safe: only written-to while locked!
if(DEBUG_TRACE) {
System.err.println(">> "+alFrame.alBuffer+" -> "+shortString()+" @ "+getThreadName());