include/SDL_mixer.h
changeset 1090 543b77a3c0eb
parent 1086 89f446aae9b5
child 1108 22157ac5cd2d
     1.1 --- a/include/SDL_mixer.h	Tue Dec 17 21:54:04 2019 +0300
     1.2 +++ b/include/SDL_mixer.h	Tue Dec 17 21:55:00 2019 +0300
     1.3 @@ -618,6 +618,12 @@
     1.4  /* Stop music and set external music playback command */
     1.5  extern DECLSPEC int SDLCALL Mix_SetMusicCMD(const char *command);
     1.6  
     1.7 +/* Return music duration in seconds.
     1.8 +   If NULL is passed, returns duration of current playing music.
     1.9 +   Returns -1 on error.
    1.10 + */
    1.11 +extern DECLSPEC double SDLCALL Mix_MusicDuration(Mix_Music *music);
    1.12 +
    1.13  /* Synchro value is set by MikMod from modules while playing */
    1.14  extern DECLSPEC int SDLCALL Mix_SetSynchroValue(int value);
    1.15  extern DECLSPEC int SDLCALL Mix_GetSynchroValue(void);