# Looping MP3 files - Sound breaks

**URL:** <https://forum.kirupa.com/t/looping-mp3-files-sound-breaks/304799>\
**Category:** Uncategorized\
**Created:** [February 14, 2010, 7:54am UTC](https://forum.kirupa.com/t/looping-mp3-files-sound-breaks/304799 "2010-02-14T07:54:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dandylion13](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dandylion13](https://forum.kirupa.com/u/dandylion13)\
**Post date:** [February 14, 2010, 7:54am UTC](https://forum.kirupa.com/t/looping-mp3-files-sound-breaks/304799/1 "2010-02-14T07:54:50Z")

</div>

Hello,

I’m looping an mp3 file using this technique:

musicChannel = music.play(0, int.MAX\_VALUE);

The loop is seamless when I play in an audio editor, but when it’s looped by the code above there is a small break before it repeats.

Is this normal behaviour? Is there a better way I should be looping sounds?

Thanks!! 🙂

PS: The compiler’s transcoder doesn’t seem to support any sound format except mp3 (?)… is there any way around this?
