So I have a project that I am trying to build in Unity 5.3.5f1 using FMOD v1.07.03
When working in the editor everything works perfectly not an error or warning. However when I create a Windows X86_64 build I get the following error when FMOD initializes.
SystemNotInitializedException: FMOD Studio initialization failed : Calling initialize : ERR_INVALID_PARAM : An invalid parameter was passed to this function.
Some info about the project:
I am using a proprietary internal plugin which is only compatible with this particular version of FMOD
I am also using an Oculus rift so VR support is enabled
Debug steps I have already taken:
I created a separate project in which I had a single source with White noise and made a successful build with FMOD initializing properly
From there I built up the features, I added our plugin and built, no problems.
Added the FMOD parameters and scripts referencing them to see if that was it, no problems.
I finally added VR support and still was able to build and hear audio successfully.
I can’t seem to find any differences between the projects in the FMOD settings or the Unity settings. All that is different is that there are a 9 sources playing simultaneously instead of one, and there are multiple banks being packaged in the build (but not being called in the scene). The project with the issues has multiple scenes although I am only trying to build a single scene loading one bank playing 9 sources simultaneously.
Any help would be appreciated! Let me know if any additional information is needed.
e:\jk\workspace\Build__1.7__UnityLibs_Win\lowlevel_api\src\fmod_system.cpp(524) : [LOG] FMOD_RESULT = 31 – An invalid parameter was passed to this function.
e:\jk\workspace\Build__1.7__UnityLibs_Win\studio_api\src\fmod_runtime_manager.cpp(637) : [LOG] FMOD_RESULT = 31 – An invalid parameter was passed to this function.
[LOG] LiveUpdate::release :
e:\jk\workspace\Build__1.7__UnityLibs_Win\lowlevel_api\src\fmod_systemi_thread.cpp(87) : [LOG] FMOD_RESULT = 31 – An invalid parameter was passed to this function.
e:\jk\workspace\Build__1.7__UnityLibs_Win\studio_api\src\fmod_studio_impl.cpp(1288) : [LOG] FMOD_RESULT = 31 – An invalid parameter was passed to this function.
e:\jk\workspace\Build__1.7__UnityLibs_Win\studio_api\src\fmod_studio_impl.cpp(3902) : [LOG] FMOD_RESULT = 31 – An invalid parameter was passed to this function.
e:\jk\workspace\Build__1.7__UnityLibs_Win\studio_api\src\fmod_weakhandle_system.cpp(252) : [LOG] FMOD_RESULT = 30 – An invalid object handle was used.
e:\jk\workspace\Build__1.7__UnityLibs_Win\studio_api\src\fmod_studio_impl.cpp(1235) : [LOG] FMOD_RESULT = 30 – An invalid object handle was used.
e:\jk\workspace\Build__1.7__UnityLibs_Win\studio_api\src\fmod_studio_impl.cpp(3909) : [LOG] FMOD_RESULT = 30 – An invalid object handle was used.