Skip to content

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

@ProfessorDragon

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.

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