summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/openal/av
diff options
context:
space:
mode:
authorXerxes Rånby <[email protected]>2013-06-24 12:46:56 +0200
committerXerxes Rånby <[email protected]>2013-06-24 12:46:56 +0200
commit11e27bf78f5fc1a117e02aba8a58b6c5fa088514 (patch)
tree03c03a3fa4d9aebaa6d024b2a8938b38428738c4 /src/jogl/classes/jogamp/opengl/openal/av
parent8dc44b6426ef8915a335e9d5e4a23c17292ecbf8 (diff)
ALAudioSink: Fill buffers before sourcing them.
Fixes OpenAL invalid argument error when trying to fill buffers. Signed-off-by: Xerxes Rånby <[email protected]>
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/openal/av')
-rw-r--r--src/jogl/classes/jogamp/opengl/openal/av/ALAudioSink.java1
1 files changed, 0 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 9f0561cb3..db01d3a38 100644
--- a/src/jogl/classes/jogamp/opengl/openal/av/ALAudioSink.java
+++ b/src/jogl/classes/jogamp/opengl/openal/av/ALAudioSink.java
@@ -82,7 +82,6 @@ public class ALAudioSink implements AudioSink {
// Allocate buffers
al.alGenBuffers(NUM_BUFFERS, buffers, 0);
al.alGenSources(1, source, 0);
- al.alSourcei(source[0], AL.AL_BUFFER, buffers[0]);
if(al.alGetError() != AL.AL_NO_ERROR) {
throw new ALException("Error generating :(");