FMOD Error: 'assertion: level >= 0.0f' failed in Build Environment Only

Hello FMOD team and community,

I’m encountering an error in my Unity project that only appears in the build environment. In the Unity Editor, there are no issues, but in the build (Windows platform), the following error message appears:

[FMOD] assert : assertion: 'level >= 0.0f' failed

Could you please explain the exact meaning of this error?

This assert occurs when you attempt to set the volume of something in the Studio API with a negative value outside of its specified linear range (i.e. 0 to positive inf), likely Studio::EventInstance::setVolume. If you don’t provide a value within the specified range, the assert should stop occurring.

Thanks, Leah

No problem!