Set the current position in the music stream, in seconds.
Defined in <SDL3_mixer/SDL_mixer.h>
bool Mix_SetMusicPosition(double position);
double | position | the new position, in seconds (as a double). |
(bool) Returns true on success or false on failure; call SDL_GetError() for more information.
To convert from milliseconds, divide by 1000.0.
This function is only implemented for MOD music formats (set pattern order number) and for WAV, OGG, FLAC, MP3, and MODPLUG music at the moment.
This function is available since SDL_mixer 3.0.0.