Unity and Looping Audio

​While working on our game Warp 5 Overdrive, I came across the issue where my .mp3 files weren’t quite looping right. There was a small gap that prevented it from being a perfect loop. I read online and found that it was best to bring in .wav files and let Unity handle the mp3 compression. So I asked Jeff Ball to send .wav versions of the bgm and popped them into Unity. The image below shows the change in Audio Format to Compressed (MPEG) and also the Gapless looping to be checked. After I did this, I restarted the game in the editor and to my excitement, it looped without a gap!

Categories

Archives