FMOD trying to find Resonance Audio in wrong directory

I’m getting this

SystemNotInitializedException: [FMOD] Initialization failed : Loading plugin 'resonanceaudio' from 'C:/Users/peter/Documents/Unity Projects/CUU_/Assets/Assets/Plugins/FMOD/platforms/win/lib/x86_64/resonanceaudio.dll' : ERR_FILE_NOTFOUND : File not found.

For some reason FMOD is looking at …/Assets/Assets instead of just Assets.

V 2.02.16

1 Like

Temp fix:

In the PlatformPlayInEditor.cs change this line
string platformsFolder = $"{Application.dataPath}/{RuntimeUtils.PluginBasePath}/platforms";
string pluginBasePath = RuntimeUtils.PluginBasePath.Replace("Assets/", ""); string platformsFolder = $"{Application.dataPath}/{pluginBasePath}/platforms";

Didn’t check if the problem is happening in other platforms, but if it is the same Asset path duplication issue it should work.

Thanks for reporting the issue, and for providing a workaround. I’ve been able to reproduce it on my end, and I’ve passed this along to the development team for further investigation.

This problem also happens if one uses other spatializers running as a plugin in FMOD, such as Steam Audio.

1 Like