I’ve tried every way possible to import an audio file that is 2 hours long. The only format that Unity can process it as is “PCM” which works in the editor but causes FMOD out of memory errors in builds.
I’m making an interactive film so I need the full audio file for the films multiple soundtracks. My Pc has 64gb of ram btw.
This is the error that appears when I try to switch the .wav file to Vorbis in the Unity editor
Errors during import of AudioClip Assets/Audio/FullMix_Ru_MDotMix.wav:
FSBTool ERROR: Run out of memory.
FSBTool ERROR: Internal error from FMOD sub-system.
If I set it to PCM it works in the editor. In a build all the audio files fail to process whether they are 1 second long or a minute long. They throw this error
Error: Cannot create FMOD::Sound instance for clip "FlyWhoosh" (FMOD error: Unsupported file or audio format. )
I tried importing the 2 hour file as wav, mp3 and ogg. Unity cannot process any of them, they all throw the out of memory error. Switching to PCM is the only thing that does not throw an error but again it breaks the builds.
Any ideas? Thanks.
Edit: Did some more searching and it seems Unity just cannot import/process audio files that big so I’ll create an Audio wrapper class that treats multiple clips as one. Its strange though as Unity can import and use a 2 hour 40gb 4k video file just fine but craps out with a 1.2gb audio file? ![]()