Function Music.duration

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

double duration() @property @trusted const;

Returns

duration of the music in seconds

Throws

dsdl2.SDLException if failed to get duration