Skip to content

Commit

Permalink
Cast to Buffer before calling flip
Browse files Browse the repository at this point in the history
This works around an issue with using JDK9 to build the project.

plasma-umass/doppio#497 (comment)
  • Loading branch information
tpenguinltg committed Sep 9, 2018
1 parent e9676f8 commit 5d168ef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/org/newdawn/slick/openal/SoundStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.nio.Buffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import java.security.AccessController;
Expand Down Expand Up @@ -373,9 +374,9 @@ public Object run() {
new float[] { 0.0f, 0.0f, 0.0f });
FloatBuffer listenerPos = BufferUtils.createFloatBuffer(3).put(
new float[] { 0.0f, 0.0f, 0.0f });
listenerPos.flip();
listenerVel.flip();
listenerOri.flip();
((Buffer)listeeterPos).flip();
((Buffer)listenerVel).flip();
((Buffer)listenerOri).flip();
AL10.alListener(AL10.AL_POSITION, listenerPos);
AL10.alListener(AL10.AL_VELOCITY, listenerVel);
AL10.alListener(AL10.AL_ORIENTATION, listenerOri);
Expand Down

0 comments on commit 5d168ef

Please sign in to comment.