r/UnityHelp • • May 23 '24

UNITY Audio Loop Delay Issue In My WebGL Build

Whenever a song reaches the end of the track, it gets silent for a few seconds before looping back to the start of the song.

I've tried everything I could think of to fix it

  • Changed Load Type to "Compress In Memory" and "Streaming"

  • Changed Override sample rate to 22,050 Hz

  • Use "Gzip" Compression Format

  • Converted my wav files to Ogg

The last time I experience something like this was back when I tried looping mp3 files, but that was easily fixed by using wav instead. I have no idea what's causing this on my WebGL build.

Any help would be greatly appreciated.

3 Upvotes

3 comments sorted by

1

u/[deleted] Oct 30 '25

[removed] — view removed comment

1

u/that_other_metall Nov 27 '25

Just saw your reply. I was able to fix it.

The music files I was using had the silence built into the track, so I just edited (cut) it out.

I'm not sure why it only affects the web build tho.