Music.position

Wraps Mix_GetMusicPosition (from SDL_mixer 2.6) which gets the timestamp of the music in seconds

  1. double position()
    class Music
    const @property @trusted
    static if(sdlMixerSupport >= SDLMixerSupport.v2_6)
    double
    position
    ()
  2. void position(double newPosition)

Return Value

Type: double

position timestamp of the music in seconds; -1.0 if codec doesn't support

Meta