Fileplayer:play not looping

Hi all!

I have this simple code:

local musicPlayer ="sound/Luna")

outside the Init of my Sprite class and this


in the Init of my class.

It loops only once, what am I doing wrong?


I think you're doing it correctly.

What format is your music? If MP3 or uncompressed WAV I guess it might cause a problem somehow.

You could try increasing the buffer size.

Or try ADPCM format music which is less taxing on the system.

Hi Matt! thanks for your reply. It's a WAV file, 44khz, 24bits. Maybe the size ( 6mb ) is the issue?
I'll try to play around with the encoding to see if it helps :slight_smile:

1 Like