How to loop game music seamlessly: no gap, no click
Short answer
A gap at the loop point comes from MP3 padding or a file not cut to an exact number of bars. Use WAV or OGG cut to whole bars, turn looping on in the engine (Godot: the import loop setting or stream.loop = true; Unity: AudioSource.loop; Web Audio: source.loop = true) and do not convert to MP3.
- Export loops as WAV or OGG cut to an exact number of bars.
- Godot: select the file, enable Loop in the Import dock (or set stream.loop = true).
- Unity: set Load Type to Streaming for long tracks and tick Loop on the AudioSource.
- Web: use Web Audio with source.loop = true (or Howler with loop: true).
- Crossfade to a calm layer for menus instead of stopping the track.
Blipwren Music: Loop-ready chiptune music for your whole game
from $8Blipwren Music loops are cut to exact bar counts with a calm no-drums layer and matching stingers: 24 loops for $8.
Secure checkout · 14-day fix-or-refund if it doesn't work as described (terms)Questions
Why does MP3 add a gap?
MP3 encoders add padding at the start and end of the file, so the loop point lands on silence.
Free: the Roblox Starter Kit
7 free Luau modules (damage, pets, shop formatting, admin audit log, tycoon guards and more) plus 3 free calculators, then 5 short emails with the scripting fixes we see go wrong most often.