diff --git a/src/org/newdawn/slick/openal/OpenALStreamPlayer.java b/src/org/newdawn/slick/openal/OpenALStreamPlayer.java index 4101cccc..9a33ba74 100644 --- a/src/org/newdawn/slick/openal/OpenALStreamPlayer.java +++ b/src/org/newdawn/slick/openal/OpenALStreamPlayer.java @@ -36,7 +36,6 @@ import java.nio.IntBuffer; import org.lwjgl.BufferUtils; import org.lwjgl.openal.AL10; import org.lwjgl.openal.OpenALException; -import org.newdawn.slick.SlickException; import org.newdawn.slick.util.Log; import org.newdawn.slick.util.ResourceLoader; @@ -182,10 +181,6 @@ public class OpenALStreamPlayer { while (AL10.alGetSourcei(source, AL10.AL_BUFFERS_QUEUED) > 0) { AL10.alSourceUnqueueBuffers(source, buffer); buffer.clear(); - int exc = AL10.alGetError(); - if (exc != AL10.AL_NO_ERROR) { - System.out.println("removeBuffers AL ERROR, err: " + exc); - } } } @@ -196,7 +191,6 @@ public class OpenALStreamPlayer { * @throws IOException Indicates a failure to read from the stream */ public synchronized void play(boolean loop) throws IOException { - this.loop = loop; initStreams(); @@ -268,10 +262,6 @@ public class OpenALStreamPlayer { if (state != AL10.AL_PLAYING) { AL10.alSourcePlay(source); } - int exc = AL10.alGetError(); - if (exc != AL10.AL_NO_ERROR) { - System.out.println("update AL ERROR, err: " + exc); - } } /** @@ -293,10 +283,6 @@ public class OpenALStreamPlayer { int format = audio.getChannels() > 1 ? AL10.AL_FORMAT_STEREO16 : AL10.AL_FORMAT_MONO16; try { AL10.alBufferData(bufferId, format, bufferData, audio.getRate()); - int exc = AL10.alGetError(); - if (exc != AL10.AL_NO_ERROR) { - System.out.println("stream AL ERROR, err: " + exc); - } } catch (OpenALException e) { Log.error("Failed to loop buffer: "+bufferId+" "+format+" "+count+" "+audio.getRate(), e); return false;