Mix_SetPositionMusic in SDL_mixer?

shit… I sent it with the wrong email account… sorry for the spam…

I couldn’t find how to jump to a module pattern with SDL_mixer… So here
is
a small function I used… Is there another way? If there is no other way,
please include this in SDL_mixer !

in SDL_mixer.h

extern DECLSPEC int Mix_SetPositionMusic(Mix_Music *music, short position);

in music.c

int Mix_SetPositionMusic(Mix_Music *music, short position)
{
if(!music)
return(-1);

 switch (music->type) {

#ifdef MOD_MUSIC
case MUS_MOD:
Player_SetPosition(position);
break;
#endif
default:
/* Not a module music */
return(-1);
}
return(0);
}>----- Original Message -----

From: “Gedeon le Canard”