pygame.mixer.music.set_pos(time) is missing.

Issue #241 resolved
Anonymous created an issue

import pygame.mixer.music as music The module music.set_pos can't be loaded, but get_pos() can. Because music.play(loops, time) does the job as well this is not important, but the documentation entry is irritating and music.play(loops, time) only takes seconds so milliseconds precise playback can't be done which is needed for e.g. a music player. But because I guess millisecond precise playback is difficult with streamed music removing the doc entry should be fine or music.set_pos(time) will only call music.play(0, time).

Comments (2)

  1. Lenard Lindstrom

    Expand the docs for pygame.music.mixer.set_pos(): Resolve Issue #241

    Note that set_pos() was added to Pygame 1.9.2. Also elaborate on the use of the "pos" argument for supported file types (taken from SDL_mixer 1.2.10 doc for Mix_SetMusicPosition).

    → <<cset db0804838ff0>>

  2. Log in to comment