FMOD causing crash on Android

Works fine on pc and in editor. But when I deploy to an android device the first time I play a sound the entire game freezes up. If I then reboot the game it all works fine.
Any idea what can be causing this?

I have two ideas.

  1. You’re loading files straight from disk without FMOD Studio and are not using the correct prefix. I can’t remember the exact wording but it’s something like “file:///your_file.ogg”. There should be some docs on it. At the very least, the Unity integration shows this prefix in the RuntimeManager.cs class during LoadBank calls.

  2. The audio is loaded on the main thread and hangs until complete.

But you haven’t given much information, nor explained any debugging you’ve done so I can’t say anything with much certainty.

1 Like

file:///android_asset is the correct prefix