Could not locate OpenAL library (32/64 Bit issue?)

I have searched a lot for this, but i can’t find, what might could help me.
I am trying to use the example for video and audio capturing and don’t need that much,
just capture the screen and record that audio.
Even if i copy over Advanced.java into my project i am running into this:

Jan 20, 2015 11:40:18 AM com.jme3.asset.AssetConfig loadText
WARNUNG: Cannot find loader com.jme3.scene.plugins.blender.BlenderModelLoader
AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005
AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005
AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005
AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005
Jan 20, 2015 11:40:18 AM com.aurellem.capture.audio.AudioSendRenderer initInThread
SCHWERWIEGEND: Failed to load audio library
org.lwjgl.LWJGLException: Could not locate OpenAL library.
at org.lwjgl.openal.AL.create(AL.java:151)
at org.lwjgl.openal.AL.create(AL.java:102)
at com.aurellem.capture.audio.AudioSendRenderer.initInThread(Unknown Source)
at com.jme3.audio.lwjgl.LwjglAudioRenderer.run(LwjglAudioRenderer.java:98)
at java.lang.Thread.run(Thread.java:745)

Java Result: 1

I know now, that it should have something to do with the VM i am using.
I am running on Win7 64-bit, JMonkeyPlattform 64-bit but both - java8 32-Bit and java8 64-Bit result in that error.

As i am using JavaFX too, i have to take one of that 8er-Versions…

Any idea how i can get rid of this problem ?

-categorization edit-

Seems like a common issue based on a quick google search. Make sure the sound is working on the PC first, otherwise, jME may need to update to a newer OpenAL version (maybe with LWJGL3?)

1 Like

I have used the Sample for javafx to play a videofile on a quad, which sits now nicely in the background.
this is working fine - playing video and doing sound.
but if you may ask - even if i don’t initialize that feature into the SimpleApplication, i run into this error.
It also happens, when i only try to add that state tot the statemanager given as the most easiest example.
i really think, the clou should be that native 32/64 bit stuff, all the other problems are mostly related to that, but by the hell, a real solution is not really found.

Finally it really had something to do with a messed up system. I didn’t get out what the problem is, but finally after a clean install (which i had in mind for other reason before) now everything is working.
So i can only say, i really smell, this was an issue due to a bad mixing of 32-bit and 64-bit stuff, but i couldn’t find that out.
Now everything works and i will not change anything further ^^

Edit: I correct
stateManager.attach(new VideoRecorderAppState()); //start recording
works as said

public class Advanced extends SimpleApplication {…} results in

AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005
AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005
AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005
AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005
Jan 23, 2015 9:23:56 AM com.aurellem.capture.audio.AudioSendRenderer initInThread
Schwerwiegend: Failed to load audio library
org.lwjgl.LWJGLException: Could not locate OpenAL library.
at org.lwjgl.openal.AL.create(AL.java:151)
at org.lwjgl.openal.AL.create(AL.java:102)
at com.aurellem.capture.audio.AudioSendRenderer.initInThread(Unknown Source)
at com.jme3.audio.lwjgl.LwjglAudioRenderer.run(LwjglAudioRenderer.java:98)
at java.lang.Thread.run(Thread.java:744)

Java Result: 1

Running on jMonkeyEngine 3.0.10
Extraction Directory: C:\Users\Yves Tanas\AppData\Roaming.jmonkeyplatform\3.0
Lwjgl 2.9.0 context running on thread LWJGL Renderer Thread
Adapter: aticfx64
Driver Version: 8.17.10.1129
Vendor: ATI Technologies Inc.
OpenGL Version: 3.3.11672 Compatibility Profile Context
Renderer: ATI Radeon HD 4550
GLSL Ver: 3.30
Audio Device: OpenAL Soft
Audio Vendor: OpenAL Community
Audio Renderer: OpenAL Soft
Audio Version: 1.1 ALSOFT 1.15.1
AudioRenderer supports 64 channels
Audio effect extension version: 1.0
Audio max auxilary sends: 4
Returning hash code of content
Checking page id -1.321.271.657 vs stored id -1.321.271.657

Well - Now i marked the problem !

Read another bit more about that aurellem stuff and he says:
"One concern:

In order to support Audio capture, it was necessary to make my own version of OpenAL-soft. This project is contained in audio-send: log above. While the code should compile fine on any system (it’s just openal-soft with some things removed, and one portable C file added), I don’t have the resources to compile it for every OS/architecture that JME3 supports. Is there already a system in place to compile native libraries for all the different platforms?
"

So there are two OpenAL versions in the project, one from lwjgl inside jme-lwjgl-natives.jar, which is used and the other, which should be used is sitting in “audio-send-natives.jar”

Is there nobody having problems in streaming video from inside you game environment or do you all have a better solution than using this ?!?
I think to make some previews and demovideos this is usable, but it doesn’t work …