Crackle at the end of audio clips

When I play an audio clip in my game, I can hear a small crackle at the end of it. It doesn’t seem to matter how long the clip is. I’ve even used Audacity to add a few seconds of silence at the end, but when playing the clip, I can still hear the crackle right before the clip ends.

In Audacity, the audio clip plays just fine, without any unwanted noise.

I’m currently using a scripting solution to turn down the volume of the AudioSource just before the end of the clip, so that the crackle cannot be heard. This works well, but I don’t really like the solution. What can I do to get rid of the issue?

Unless the clip has a DC offset, I have no idea why this would occur. I’m good at finding out though! :slight_smile: Mind posting the smallest possible unitypackage that reproduces the problem?

As I understand it, the clip does not have a DC offset at either end. But when I was preparing the repro package, I’ve noticed that the ADPCM compression seems to have problems with the clip’s high frequency changes (it’s basically some “boing” sound with a rectangle waveform.) When I changed it to PCM, the issue went away. So, thanks!

Ah, good to know! Glad to hear it worked out!