I am using a streamed background music (ogg) in my game and everything works great. However, when I close the application, the following exception is thrown:
Exception in thread "Thread-4" java.lang.UnsatisfiedLinkError: org.lwjgl.openal.AL10.nalGetSourcei(II)I
at org.lwjgl.openal.AL10.nalGetSourcei(Native Method)
at org.lwjgl.openal.AL10.alGetSourcei(AL10.java:819)
at com.jmex.audio.openal.OpenALStreamedAudioPlayer.update(OpenALStreamedAudioPlayer.java:260)
at com.jmex.audio.openal.OpenALStreamedAudioPlayer$PlayerThread.run(OpenALStreamedAudioPlayer.java:361)
It is totally harmless because it only appears at the Java console and does not seem to affect the closing process at all (at least what could be noticed by a user). What is more curious, the exception is not thrown in all cases - sometimes it appears and sometimes not.
Is there anything I can do to avoid it? I am always using the latest sources of jME (from CVS) and the most recent versions of all libraries.
Ah well then what is probably happening is that one thread kills openal just as the other is about to issue openal commands. We can probably take care of much of that (musicqueue and environpool sounds anyhow) in the system's cleanup method.