Hi,
I'm getting the following error when trying to call
FSound.FSOUND_Stream_Open(data, FSound.FSOUND_LOADMEMORY)
java.lang.UnsatisfiedLinkError: nFSOUND_Stream_Open
Here's the full stack trace.
java.lang.UnsatisfiedLinkError: nFSOUND_Stream_Open
at org.lwjgl.fmod3.FSound.nFSOUND_Stream_Open(Native Method)
at org.lwjgl.fmod3.FSound.FSOUND_Stream_Open(FSound.java:2103)
at org.jgameengine.audio.fmod.FMODStreamHandle.loadStreamFromFile(FMODStreamHandle.java:57)
at org.jgameengine.audio.fmod.FMODAudioManager.loadMusicInMemory(FMODAudioManager.java:84)
at org.jgameengine.testgame.initialiser.TestGameClientInitialiser.initialiseEngine(TestGameClientInitialiser.java:33)
at org.jgameengine.engine.Engine.initEngine(Engine.java:267)
at org.jgameengine.launcher.FirstLauncher.main(FirstLauncher.java:47)
I'm fairly sure it's not an obvious error like I don't have the native library path set. The reason I'm sure of this is that I've successfully called
FSound.FSOUND_Init(getSampleRate(), getNumberOfChannels(), 0)
And:
FSound.FSOUND_Update();
Here's the bit I'm adding to the command line to set the native library path:
-Djava.library.path=/Users/owenbutler/lib/lwjgl-1.1/native/macosx:/Users/owenbutler/lib/lwjgl_optional-1.1/native/macosx
I'm at a bit of a loss. I've pretty much just copy and pasted example code from this example here:
http://svn.sourceforge.net/viewvc/java-game-lib/trunk/LWJGL/src/java/org/lwjgl/test/fmod3/StreamPlayerMemory.java?view=markupAny ideas?