Skip to content
Search/
CyberMax › Answers

How to loop game music seamlessly: no gap, no click

Updated 2026-11-20 · Roblox and game developers · by CyberMax

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.

  1. Export loops as WAV or OGG cut to an exact number of bars.
  2. Godot: select the file, enable Loop in the Import dock (or set stream.loop = true).
  3. Unity: set Load Type to Streaming for long tracks and tick Loop on the AudioSource.
  4. Web: use Web Audio with source.loop = true (or Howler with loop: true).
  5. Crossfade to a calm layer for menus instead of stopping the track.
Blipwren Music icon

Blipwren Music: Loop-ready chiptune music for your whole game

from $8

Blipwren 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.

You get one email to confirm first. Then the kit, and 5 short emails over two weeks. One-click unsubscribe in every email; we never share your address.