I need audio help on Unity. I’ve found when I have about 7 music tracks in my game the menu screen on a pc build freezes for about a second. But when I have more than 7 tracks in my game I’ve found the menu screen freezes for longer than that. Sometimes I get a music track is truncated when imported and that knocks out the music playing on the menu screen. Streaming the tracks also causes the music playing on the menu to no longer play on the menu. I need someone with experience in audio in Unity to help!
What happens if you mark those audio assets as streaming? I think by default they are load into memory, which can be really piggish if you have large audio files. Streaming only loads a little bit at a time.
Either way, every running audio stream is going to require additional processing and disk I/O bandwidth to maintain, and somewhere along the way you may run into issues, particularly on less-capable hardware.
Unity is a real beast though, and in my experience I am easily able to stream multiple loops at once, even on older mobile targets.
streaming doesn’t help because streaming the music tracks strips the music playing from the menu screen and you can’t get it back. do you know how to get music back on menu screen when streaming the tracks during gameplay causes the music on menu screen playing to be stripped away? and do you know why more than 7 music tracks in the game causes the menu screen to freeze for at least 5 seconds or more before you are sent into gameplay? i don’t stream tracks. but i tried to and it stripped away music on menu screen of game. usually i use default setting and when i use more than 7 tracks in default it causes menu screen to freeze for a long time. how do i solve this issue? these are major unity issues and i still have no answers on how to solve them.
KURT DEKKER, you didn’t solve my audio unity pc build issues