-
I have been trying to get this wrapper to work today and was unable to test what i even written since i have been getting this dll import error. I or any users shouldn't have to install OpenAL to make my app work so i tried imbedding and/or setting the openAL dll as content, both options does not seem to affect the result. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Can you give some more details of where you've placed your dll and what the project setup is? |
Beta Was this translation helpful? Give feedback.
-
The configuration only works with mono, and therefore would only work with OpenTK 3. For the newer OpenTK you could debug into Where part of the resolving process should happen. Apart from that should the nativel openal32.dll probably at the output folder in Apart from that in general a BadImageFormat-Exception happens when you try to load a library of the wrong architecture(e.g. trying to load a ARM library on x86, or more often trying to load a x86 assembly in a x86_64 context or vice versa). |
Beta Was this translation helpful? Give feedback.
-
Sorry, I meant for the new OpenTK, the runtimes folder does not work for OpenTK 3, as it was only introduced with newer .Net. |
Beta Was this translation helpful? Give feedback.
The configuration only works with mono, and therefore would only work with OpenTK 3.
For the newer OpenTK you could debug into
opentk/src/OpenAL/OpenTK.Audio.OpenAL/Native/ALLoader.cs
Line 42 in 2293609
Where part of the resolving process should happen.
Apart from that should the nativel openal32.dll probably at the output folder in
runtimes/win-x64/native/openal32.dll
for the 64bit openal version andruntimes/win-x86/native/openal32.dll
where these the locations you tried?.Apart from that in general a BadImageFormat-Exception happens when you try to load a library of the wrong architecture(e.g. trying to load a ARM l…