I have looked up a thousand and one different different ways to reproduce sound in LWJGL. None of them seem to work. It almost seems futile. All of them seemed to give errors, and those which didn’t, threw a NullPointerException to my WAV sound.
I have decided to stick with this tutorial by the Ninja Cave - http://www.lwjgl.org/wiki/index.php?title=Slick-Util_Library_-Part_2-_Loading_Sounds_for_LWJGL
Issue is, I’ve tried it on my game, and it seemed to fail. So, I copied the entire tutorial on a seperate class, changed the sound names to fit with the sound I had (I only used the WAV format and omitted the rest), and ran the program.
It game me this message:
Mon Jul 29 01:31:50 EEST 2013 INFO:Initialising sounds..
Mon Jul 29 01:31:50 EEST 2013 INFO:- Sound works
Mon Jul 29 01:31:50 EEST 2013 INFO:- 64 OpenAL source available
Mon Jul 29 01:31:50 EEST 2013 INFO:- Sounds source generated
java.lang.NoSuchMethodError: org.lwjgl.LWJGLUtil.log(Ljava/lang/String;)V
at org.newdawn.slick.openal.WaveData.create(WaveData.java:126)
at org.newdawn.slick.openal.SoundStore.getWAV(SoundStore.java:713)
at org.newdawn.slick.openal.SoundStore.getWAV(SoundStore.java:683)
at org.newdawn.slick.openal.AudioLoader.getAudio(AudioLoader.java:54)
at spacegameII.SpaceGameII.main(SpaceGameII.java:83)
Any help would be greatly appreciated.