HOLD UP! I just found
THIS - If it's effectively a drop-in replacement it might be a low-calorie solution.....
I've skimmed the
docs for SDL_Mixer, and it makes no reference to the functionality I'm looking for; I assume it does not have the ability.
From the looks of some of the functions, it _might_ be possible to cobble together the capability, but it would require an external source for the looping points, and much worse, would require the OpenXCom devs to spend the calories to implement it.
- Music would have to be played without SDL looping
- Mix_HookMusicFinished can catch when a music track stops
- Logic would have to be implemented to figure out if we want to continue playing music
- Mix_SetMusicPosition can set to an arbitrary time (Assuming it can accept a high-accuracy argument like "60.0015" or somesuch)
- Even with all this, I have no idea if we would get seamless playback, or an audible break in the music
While this is a fun thought experiment, this would probably break things and is in no way worth the effort.