So were you able to fix it that way? Your issues sound very similar to the ones I had myself. In case this is useful: Oculus Spatializer + Fmod + Unity
Yes, duplicating the DLL and placing it where the build wants it, and also where the editor wants it, does fix the issue. I don’t see a way for me to fix the build path, I think it will need to be addressed by FMOD.
Hi, thanks for letting us know about this. The plugin location was changed in Unity 2019, but our code had not been updated to match. This issue has been fixed for the next release.
A couple of things to check.
First is the .dll in the Assets > Plugins > Plugins > FMOD > platforms > win > lib > x84_x64 folder. Secondly, the plugin is added to your FMOD Settings:
Hi Connor. I solved the issue but as I mentioned before it’s all provoked by the Oculus plugin getting installed in the wrong folder by default. The DLL files need to be manually moved to the correct folder after installation.
Thank you for the information. The first thing to check is if the plugin is added to the settings:
I noticed that I had to use the OculusSpatializerFMOD.dll in the "\FMOD\x64\OculusSpatializerFMOD.dll" from the Oculus download ovr_audio_spatializer_fmod_47.0.zip. I then placed that dll into \Assets\Plugins\FMOD\platforms\win\lib\x86_64\. Let me know if that works.
Also when I remove the plugin OculusSpatializerFMOD from the settings in Unity and use the FMOD spatializer instead I get this yellow message in the console:
Plugins: Couldn’t open /Users/bronamartin/Unity/VikingVillageTest_FMOD/Assets/Plugins/FMOD/platforms/mac/lib/OculusSpatializerFMOD.bundle/Contents/MacOS/OculusSpatializerFMOD, error: dlopen(/Users/bronamartin/Unity/VikingVillageTest_FMOD/Assets/Plugins/FMOD/platforms/mac/lib/OculusSpatializerFMOD.bundle/Contents/MacOS/OculusSpatializerFMOD, 2): Library not loaded: @rpath/libthird-party_pffft_pffft.dylib
Referenced from: /Users/bronamartin/Unity/VikingVillageTest_FMOD/Assets/Plugins/FMOD/platforms/mac/lib/OculusSpatializerFMOD.bundle/Contents/MacOS/OculusSpatializerFMOD
Reason: image not found
But the sounds work fine when stop I using the OculusSpatializerFMOD
Apologies, I overlooked you were working on a Mac.
I managed to solve the issue by using the libOculusSpatializer.dylib rather than the .dunble. Could you please try just importing the libOculusSpatializer.dylib then adding the following to the FMOD Integration Settings:
You may get a warning from Unity about using the .dylib this can be fixed in your System Preferences -> Privacy & Security -> Security and allowing the .dylib to be read.
I have not been able to reproduce this error, can I confirm you removed OculusSpatialixerFMOD from the setting and deleted all the oculus files as well?
Hi Connor! Thanks for your reply,
I have tried that and I am still getting errors. I have attached the errors and my FMOD settings.
This is where the trouble starts - Missing DSP plugin ‘Oculus Spatializer’ - So this is the Oculus Spatializer plugin that I use for in FMOD studio. It is located in the Plugins folder of FMOD Studio but not in the assets plugins folder in unity. But I think that is all correct.
When I remove the Oculus Spatializer and replace it Resonance Audio everything works fine.
The plugin also needs to be located in the Unity assets folder for the FMOD integration to be able to find it. Just a reminder this may prompt a security warning.
When is this error being logged? Are you able to provide the full Editor and Player Unity logs that I can have a look at?
You should only require the following files in the android->lib->arm64-v8a folder: