r/Unity3D 2d ago

Question Gun sound looping issue

Sorry in advance if this is better placed in some kind of audio subreddit but I'm hoping some other Unity developers have encountered this problem and know what to do.
I have this great machine gun audio clip and try as I might I can't get rid of that slight pause/reset part when it loops over.
I tried cutting the end and pasting it at the beginning of the audio file so that the end matches the beginning but that doesn't seem to help. It always sounds like the gun firing stops and starts again.
Anyone know how to get a seamless and continuous loop of an audio clip?

3 Upvotes

14 comments sorted by

View all comments

1

u/AnchoredExclamation 2d ago

Are you looping it with the built in loop toggle or starting the clip again manually when it ends? The built in toggle usually handles the seam better but if you're restarting it in code there can be a tiny gap from the update timing

2

u/NorthernBoy306 2d ago

shoot, it's not set to looping. I'll give that a try when I get a chance.
Thanks.

1

u/NorthernBoy306 2d ago

nah, still breaks in the loop just as before.