| Summary: | Add the ability to use pattern jump commands in SDL_mixer | ||
|---|---|---|---|
| Product: | SDL_mixer | Reporter: | sir_belial |
| Component: | misc | Assignee: | 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. | ||
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? |
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.