SDL Wiki
(This function is part of SDL_mixer, a separate library from SDL.)

Mix_MusicDuration

Get Music duration.

Syntax

double Mix_MusicDuration(Mix_Music *music);

Return Value

Returns music duration in seconds. -1 on error

Remarks

If NULL is passed, returns duration of current playing music.

Version

This function is available since SDL_mixer 2.6.0.


CategoryAPI


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.