Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix expected initial AudioContext state in audiocontext-suspend-resum… #25628

Merged

Conversation

cdumez
Copy link
Contributor

@cdumez cdumez commented Sep 18, 2020

…e.html

As per specification, the initial state of an AudioContext right after constructing it should be
'suspended', not running. The state should only be set to 'running' asynchronously, if the user
agent allowed it.

…e.html

As per specification, the initial state of an AudioContext right after constructing it should be
'suspended', not running. The state should only be set to 'running' asynchronously, if the user
agent allowed it.
@cdumez
Copy link
Contributor Author

cdumez commented Sep 18, 2020

cc @domenic

Copy link

@rtoy rtoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

And just to make it explicit (so I can remember), it's described in the constructor algorithm for AudioContext: https://webaudio.github.io/web-audio-api/#dom-audiocontext-audiocontext, steps 1 and 2.

@cdumez cdumez merged commit 175a108 into web-platform-tests:master Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants