Using JOAL with the JNLPAppletLauncher does not work, I get the following exception if wrap_oal.dll and OpenAL32.dll are absent from the c:\windows\system32 folder :
java.lang.RuntimeException: Can not get proc address for method “alcCaptureCloseDevice”: Couldn’t set value of field “_addressof_alcCaptureCloseDevice” in class net.java.games.joal.impl.ALCProcAddressTable
at com.sun.gluegen.runtime.ProcAddressHelper.resetProcAddressTable(ProcAddressHelper.java:68)
at net.java.games.joal.impl.ALProcAddressLookup.resetALCProcAddressTable(ALProcAddressLookup.java:109)
at net.java.games.joal.impl.ALCImpl.alcOpenDevice(ALCImpl.java:341)
at imiuzetna.audio.AudioContext.(Unknown Source)
at imiuzetna.video.Interface.(Unknown Source)
at imiuzetna.Imiuzetna.playScene(Unknown Source)
at auberge_emu.MainApplet.run(Unknown Source)
at imiuzetna.ImiuzetnaApplet$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Unable to find and load OpenAL library
at net.java.games.joal.impl.ALProcAddressLookup$DynamicLookup.dynamicLookupFunction(ALProcAddressLookup.java:66)
at com.sun.gluegen.runtime.ProcAddressHelper.resetProcAddressTable(ProcAddressHelper.java:64)
… 8 more
With wrap_oal.dll and OpenAL32.dll in the c:\windows\system32 folder, I have sound in the applet.
When launching the same app with Java webstart on the same computer, JOAL woks without problems.
I think JOAL worked with the JOGLAppletLauncher without the need of the two dlls in the system folder, maybe there’s some code from the JOGLAppletLauncher that is missing in the JNLPAppletLauncher.
Thanks for your help.