From 11e27bf78f5fc1a117e02aba8a58b6c5fa088514 Mon Sep 17 00:00:00 2001 From: Xerxes Rånby Date: Mon, 24 Jun 2013 12:46:56 +0200 Subject: ALAudioSink: Fill buffers before sourcing them. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes OpenAL invalid argument error when trying to fill buffers. Signed-off-by: Xerxes Rånby --- src/jogl/classes/jogamp/opengl/openal/av/ALAudioSink.java | 1 - 1 file changed, 1 deletion(-) (limited to 'src') 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 :("); -- cgit v1.2.3