table of contents
other versions
- experimental 3~git20240319~12fb85e+ds-1
Mix_SetMusicPosition(3) | SDL_mixer3 FUNCTIONS | Mix_SetMusicPosition(3) |
NAME¶
Mix_SetMusicPosition - Set the current position in the music stream, in seconds.
SYNOPSIS¶
#include "SDL3_mixer/SDL_mixer.h"
int Mix_SetMusicPosition(double position);
DESCRIPTION¶
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.
FUNCTION PARAMETERS¶
- position
- the new position, in seconds (as a double).
RETURN VALUE¶
Returns 0 if successful, or -1 if it failed or not implemented.
AVAILABILITY¶
This function is available since SDL_mixer 3.0.0.
SDL_mixer 3.0.0 | SDL_mixer |