- Home /
The question is answered, right answer was accepted
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 set?
Yes the loop is set in Unity under the AudioSource component. $$anonymous$$y problem is not that I cannot get the audioclip to loop, it does that perfectly, but that whenever it does loop, there is a very brief moment of silence and it is just choppy enough to bug me :/ . @Dave-Carlile
Answer by Universalerror · Jul 18, 2016 at 02:09 PM
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
I think you will need an audio editing tool for that.
I have :/ . I trimmed up my clip a tiny bit on Garageband and that didn't work so I am going to try Audacity. I also tried converting the mp3 file to wav and looping that in Unity but the same problem prevails. I know that my problem is the very slight bit of silence at the end of my audioclip that Unity put in there. @NickWu
Just complementing:
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.
Thanks for the illustration. I didn't have much time to do this myself as I was just doing fly-by answering. @brunocoimbra
@Universalerror @NickWu @brunocoimbra everything y'all said ended up working for me and helping me. I fixed it! Thank you! Have a great day ;)
Follow this Question
Related Questions
Play MPEG from web options 0 Answers
Is there a way to loop mp3 files seamlessly? 2 Answers
What could make the audio loop? 2 Answers
What are the parameters to the AudioClip.create() function 0 Answers
Looping an AudioClip var... 1 Answer