Can setLoopRange accept fractions of a second?

Super simple question about playdate.sound.fileplayer:setLoopRange() in Lua. The documentation says it accepts seconds, but can it accept fractions, like setLoopRange(34.67) for example? I don't get an error when doing this, but just wondering if the value is cutting off at the decimal. My music files seem to have very specific restart points.

Thanks!

Yes it supports this.

Awesome thanks! After some more tweaks I've got these loops sounding pretty good.

1 Like