Skip to content

pygame.mixer.music play music with start position #217

Description

@ProfessorDragon

Currently pygame.mixer.music.play ignores the start and fade_ms arguments.

It should be easy to implement start by adding this line to the existing MM.play function:

track.media.currentTime = start;

fade_ms would be more difficult, it would require something like a setTimeout loop which manually adjusts the media's volume. pygme.mixer.music.fadeout should mimic the behavior of fade_ms but in reverse.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededpygame prebuiltissue may come from pygame-wasm

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions