[SDL] SDL_mixer and implicit looping of module music files
Gaetan de Menten
gedeonlecanard at gmail.com
Thu Dec 23 09:12:42 PST 2004
Hello,
A while ago (2001/10/18 to be precise), SDL_mixer was changed to
ignore the implicit looping of modules. The diff is at:
http://www.libsdl.org/cgi/cvsweb.cgi/SDL_mixer/music.c.diff?r1=1.31&r2=1.32
While it is probably better that way (this is arguable) for most
people (it was changed a long time ago and nobody complained), it
breaks the music in one of my games. Even though I think that implicit
looping stuff should stay off by default, I'd like a way to turn it
on...
I was about to suggest to add a new function (which would be trivial
to implement)
to do just that but then I thought Sam probably wouldn't accept that
since it would bloat the API...
What about adding a single function to tweak several playback
parameters like that in module (and possibily other types) files?
These parameters are currently hard-coded. What I have in mind is a
function taking two parameters, the first one being an id (probably a
DEFINEd constant) of the parameter to change and the second would be
the actual value of that parameter. Probably something like that:
void Mix_SetPlaybackParameter(int paramid, int value);
So what do you people think (especially Sam)? Anybody sees another way
to overcome my problem?
-Gaëtan.
More information about the SDL
mailing list