Playing a continuous music loop with AudioStreamPlayer

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bumblemeow


I added an AudioStreamPlayer to my scene with the Stream set to a music MP3 (or OGG, I’ve tried multiple songs and formats). The music successfully loops, however, there is a tiny but noticeable pause between loops of the music.

When I play songs in a loop in other software (such as the “Music” app on MacOS, or Adobe Audition), the music seamlessly repeats without a pause.

Is there a configuration option or something else I can do to get rid of the pause?



Can You see this pause in visual preview of audio file ?

Inces | 2022-07-19 13:09

How are you looping the sound? Are you doing it “manually” in code (by simply playing it again), or have you imported it as a looped track?

jgodfrey | 2022-07-19 14:31

I don’t see any pause in the waveform of the audio file.

bumblemeow | 2022-07-19 18:13

I have imported the file as a looped track.

bumblemeow | 2022-07-19 18:15