Trying to run the test for OpenAL and getting the following:
C:\LWJGL\lwjgl-win32-0.96> java -cp .;res;jar\lwjgl.jar;jar\lwjgl_test.jar;jar\
lwjgl_util.jar;jar\lwjgl_fmod3.jar;jar\lwjgl_devil.jar; -Djava.library.path=nati
ve org.lwjgl.test.openal.PositionTest
java.io.IOException: Stream closed
at java.io.BufferedInputStream.getInIfOpen(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at java.io.DataInputStream.readInt(Unknown Source)
at com.sun.media.sound.WaveFileReader.getFMT(Unknown Source)
at com.sun.media.sound.WaveFileReader.getAudioInputStream(Unknown Source
)
at javax.sound.sampled.AudioSystem.getAudioInputStream(Unknown Source)
at org.lwjgl.util.WaveData.create(WaveData.java:93)
at org.lwjgl.test.openal.PositionTest.setup(PositionTest.java:199)
at org.lwjgl.test.openal.PositionTest.execute(PositionTest.java:127)
at org.lwjgl.test.openal.PositionTest.main(PositionTest.java:486)
Error setting up demonstration:
java.lang.NullPointerException
at org.lwjgl.test.openal.PositionTest.setup(PositionTest.java:200)
at org.lwjgl.test.openal.PositionTest.execute(PositionTest.java:127)
at org.lwjgl.test.openal.PositionTest.main(PositionTest.java:486)
C:\LWJGL\lwjgl-win32-0.96>
Why is this?
Also when i try and run the OpenGL Test's i get the following error (just stating it incase it is useful):
C:\LWJGL\lwjgl-win32-0.96> java -cp .;res;jar\lwjgl.jar;jar\lwjgl_test.jar;jar\
lwjgl_util.jar;jar\lwjgl_fmod3.jar;jar\lwjgl_devil.jar; -Djava.library.path=nati
ve org.lwjgl.test.opengl.shaders.ShadersTest none
Setting display mode to: 1024 x 768 x 32 @85Hz
Exception in thread "main" java.lang.NullPointerException
at org.lwjgl.test.opengl.shaders.ShadersTest.initialize(ShadersTest.java
:177)
at org.lwjgl.test.opengl.shaders.ShadersTest.main(ShadersTest.java:78)
Any help would be soo greatly appreciated. I've been trying to get 3D sound in my 2d game all week now, i started of with JOAL but that wasnt working (jvm crash for some reason) and then i turned to LWJGL for the OpenAL and now it is not working either.
Cheers, Nick!