-
Notifications
You must be signed in to change notification settings - Fork 166
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
ABSN.start sends a control message on a suspended context? #2248
Comments
Also, the algorithm step 2 says check for errors. This differs from the algorithm for |
Oops. Wrong repo. This is v1, I think. |
Teleconf: Simple typo that should be fixed. |
Do we need to make the distinction about the context state at all? Perhaps the messages should always be sent, letting the context deal with them appropriately? |
I'm confused by the conditions for sending a control message from
Based on these conditions, if I explicitly called I find this unexpected. I expect all of the sources to start playing either immediately or eventually if they were scheduled to start in the future. If this interpretation is correct, I think the message should always be sent, implying we can remove all of the conditions. |
I'm further confused. Step 3 says:
(Note to self: Fix typo in "messsage".) Step 5 says we send a control message to the audio thread to run it (under some conditions). But presumably, the message in 3 is eventually delivered to the audio thread, so we tell the audio thread to start the source twice. That seems wrong. Do we really want step 5 to send directly the message to the audio thread? Shouldn't this be handled in the normal processing of the control message queue? |
Remove step 5; step 3 already queues a control message to start the buffer source so we don't need a step 5 to send another. Plus step 5 sends another control message under certaiin conditions. These conditions aren't useful since the start message should always be sent. The context will handle them in the right way when it is resumed or already running.
I think I was misunderstanding what step 5 was really trying to do. I think this step is basically to allow May also want to add a Note that this allows calling |
Where Is It
Describe the issue
In the algorithm for
start()
, step 4.1 says the control message is sent to the rendering thread only if the control thread state is suspended. And control thread state says the state corresponds to the states of an AudioContext state.Do we really mean that the message is only sent if the context is suspended? Should this not say running instead? Or maybe the state isn't the context state? Or maybe it should say something altogether different?
The text was updated successfully, but these errors were encountered: