Why Won't My Audioclip Loop Seamlessly?

Hello all,

I made my gameplay music on GarageBand and I made it to be able to loop seamlessly, and it does just that on Garageband! Only thing is, in Unity it does not loop 100% seamlessly, it had a very brief moment of no sound. Why is that? Is their something regarding the way Unity does audio that I need to know or I am mis-using?

Thank you!

Your screenshot is showing an audio clip. What are the settings on your AudioSource? Is the [loop property][1] set? [1]: https://docs.unity3d.com/ScriptReference/AudioSource-loop.html

1 Answer

1

Looking at the ends of the waveform, it looks like there is a very slight bit of silence at the end. Try trimming it down by a slight bit and see if that helps. This could be an issue with GarageBand making it sound perfectly looped and exporting it slightly different, or something with Unity.

Can I trim an audioclip right inside Unity? @Universalerror

Just complementing: [74360-74289-audio.png|74360] The is a very slight bit of silence at the beginning AND at the end of the track. Just cut it of with audacity or something alike.

@Universalerror @NickWu @brunocoimbra everything y'all said ended up working for me and helping me. I fixed it! Thank you! Have a great day ;)