We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1521

Summary: Add the ability to use pattern jump commands in SDL_mixer
Product: SDL_mixer Reporter: sir_belial
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: WAITING --- QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2    
Version: unspecified   
Hardware: All   
OS: All   
Attachments: Patch to add Mix_EnableModLooping to the api. Currently only available for mikmod replayed modules.

Description sir_belial 2012-06-15 08:27:38 UTC
Created attachment 878 [details]
Patch to add Mix_EnableModLooping to the api. Currently only available for mikmod replayed modules.

I'd really like control over whether pattern jump commands are allowed in a module. The current (sensible) default is, that these commands are not allowed and the module just ignores any pattern jump commands. But sometimes it is better to put multiple looping subsongs into one module and then just set the pattern to play with Mix_FadeInMusicPos et al. However currently with jump commands disabled all subsongs simply play one after the other.

I'd thus suggest adding something like Mix_EnableModLooping(Mix_Music *, enable) to the api which controls if pattern jump commands are allowed for a given module.

I supply a patch which does exactly that for modules played my the mikmod replayer code.
Comment 1 Sam Lantinga 2017-10-21 22:22:55 UTC
I just switched the default to allow looping:
https://hg.libsdl.org/SDL_mixer/rev/4359e193d93f

Does that fix your use case, or do you need it on sometimes and off other times?