Music.duration

Wraps Mix_MusicDuration (from SDL_mixer 2.6) which gets the duration of the music in seconds

class Music
const @property @trusted
static if(sdlMixerSupport >= SDLMixerSupport.v2_6)
double
duration
()

Return Value

Type: double

duration of the music in seconds

Throws

dsdl2.SDLException if failed to get duration

Meta