love2d / love

LÖVE is an awesome 2D game framework for Lua.
https://love2d.org
Other
4.88k stars 391 forks source link

Seamless tracker music looping #668

Closed slime73 closed 10 years ago

slime73 commented 11 years ago

Original report by hahawoo (Bitbucket: hahawoo, GitHub: hahawoo).


I've uploaded a one bar loop, one as a .xm from MilkyTracker, and one converted to an .ogg from a .wav from MilkyTracker. Warning: the .ogg file is louder!

The .ogg loops seamlessly, however the .xm doesn't. The .xm loops seamlessly in MilkyTracker, ModPlug Player, and foobar2000 with foo_dumb.

slime73 commented 11 years ago

Original comment by Boolsheet (Bitbucket: Boolsheet, GitHub: Boolsheet).


I didn't find any option in libmodplug that would have the desired effect. You can just add a position jump at the end of your track to make it loop. bartbes recently fixed the issue that prevented that in 0.8.0.

slime73 commented 10 years ago

Original comment by Bart van Strien (Bitbucket: bartbes, GitHub: bartbes).


More like "cantfix", I had a poke in the modplug source, and from what I can tell we're doing everything correctly, but modplug might be padding. It seems its internal read method only returns a boolean indicating success reading into the buffer, this means modplug can't tell us we're at the end if it has a partially filled buffer, only if it couldn't fill it at all.

slime73 commented 10 years ago

Original comment by Kim (Bitbucket: sju4sju, ).


for looping a (or to a) pattern in tracker music, BXX command works perfectly in 0.9.0. DXX not so seamlessly.