Skip to content

Way to detect if audio is actually running on web #20

@crumblingstatue

Description

@crumblingstatue

Audio context creation requires user input on modern web browsers.
When I call run_output_device, it seems to succeed even if there was no user input, but my provided closure isn't being called at all, and there is no audio output.
This was tested on Firefox.

In this case, I would like to know if the audio context creation actually failed due to no user input beforehand, so I can tell the user the audio context isn't running, and let them click a button to start it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions