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
Conflict on resuming context #642
Comments
The first behaviour has been shipping for some time, I'd say we can't really change it now. |
I agree. @rtoy WDYT? |
Yeah, I wouldn't want to change the existing online context behavior of resume. I don't have any objections if resume on offline contexts behaves differently. The use cases are different and suspend is already different (time arg required). |
Honestly, resuming a running context is not that really meaningful. Especially In OfflineAudioContext, changing audio graph or scheduling things will be done much faster than realtime, so doing something after the resuming is not the recommended usage. |
TPAC 2015: Change the behavior of OfflineAudioContext to match the online one, i.e. resolve the promise if the context is in a running state and reject only if it is closed. Since both AudioContexts will now inherit from a single interface it would be strange to vary this behavior even though the use cases are somewhat different. |
I forgot to bring up another question: what should we do about resuming a context that has not been started? I think we should reject the promise. |
Yes, for the Offline case. For the online case, this would behave normally, but is kind of useless. |
For this issue, PR #656 is on the review. |
The spec has changed and the PR #656 is not applicable any more. I am removing In the PR Review label. |
Oh, I forgot to close this: #1096. |
Here is the behavior on resuming a realtime context.
For offline context, we have
Which one is more reasonable?
The text was updated successfully, but these errors were encountered: