Hi guys,
I try to load and install a plug in named SOFAlizer for Unity (GitHub - sofacoustics/SOFAlizer-for-Unity: SOFA Spatializer as a Native Plugin for Unity) and I receive the following error message: failed to load assets/plugins/x86_64/audiopluginsofa.dll’, expected x64 architecture, but was unknown architecture. you must recompile your plugin for x64 architecture.
Before importing it to Unity, I built the plug-in using a x64 architecture in Visual studio, having resolved any library issues I had, but Unity can’t identify the plug-in in the project settings.
I have seen a couple of similar posts for other plug-ins and their proposed solutions which haven’t worked in my case, and neither in the case of the people who have posted them I think.
[i.e. 1) select your dll file and then in the Inspector>Platform settings , choose x86 for CPU. Click Apply and restart Unity
2) the error is no issue for concern: scripts will still be able to call into it via DllImport attribute. you should be able to just ignore that error]
It’s a more advanced than the Meta XR Audio SDK plug-in for personalized binaural audio, so I really want to find a solution to it. The installation notes refer to the following steps which I believe I have followed and no errors were popped in visual studio:
- Start NativeCode\VisualStudio\AudioPluginSOFA.sln
- Select x64, Release or Debug
- Rebuild AudioPluginSOFA
- Adapt or install Windows SDK version if an error occurs during compilation. (Properties)
If you can give a hand it would be much appreciated. ![]()