Skip to content

Change number of loops a sound is set to do while it is playing with Sound.set_loops(loops) #1913

Open
@Josekai

Description

@Josekai

This issue came up for me because I wanted a fraction-of-a-second dialogue box sound to loop using play(-1) and then stop at the appropriate time, but the only way to stop it is to call stop() or fadeout(). If I could make it finish just the final loop it was doing then it would sound smoother and consistent, because it wouldn't be cutting off a sound.

This might be called Sound.set_loops(loops)

I don't know much about the lower level stuff of how this would work so maybe it's harder than it looks, but it'd be really useful for me in this situation!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions