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.
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.