Skip to content

Feature request: non-blocking play_file() #18

@PaintYourDragon

Description

@PaintYourDragon

Maybe an optional boolean argument whether to block on WAV playback or not? Would want corresponding function(s) to poll whether currently playing and to disable speaker without accessing protected elements.

Currently working around this with a few extra lines in the Dragon Drop game:
https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/main/Macropad_Dragon_Drop
Not a pressing need, the workaround’s simple enough, just that it might make user-facing code less daunting by not having pylint directives in there and stuff. Thx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions