My music makes the scene loading too long
Hi, I've got a new issue with my game project. I used to play a specific test audio file everytime my game level was loading, and the scene loading was fast like lightning. But since i imported my own music, it takes like 4-5 seconds to load the level on my test APK (It's an android game). Is there a way to correct that without reducing too much my file quality?
Answer by Sipel · Apr 04 at 02:36 PM
You should change the Audio Clip Settings. Music and generally long audio files should have Load Type set as Streaming. You don't want them Compressed In Memory cause that will fill your ram and you don't want the Decompress On Load cause that means that it will take time to start playing your audio file. Try unhecking also the Preload Audio Data option, cause if active the scene won't be fully loaded until all the referenced Audio Clip with this option checked are loaded.
Answer by MaxLohMusic · Apr 01 at 09:45 PM
Click on the asset and look at the inspector. Change it to "compressed in memory" or any option other than "decompress on load".
Your answer
![](https://koobas.hobune.stream/wayback/20220612124753im_/https://answers.unity.com/themes/thub/images/avi.jpg)