-
Notifications
You must be signed in to change notification settings - Fork 168
Need a more algorithmic definition of AudioWorkletNode lifetime #1079
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
Comments
Thought: would it be appropriate to place (or somehow invoke) this algorithmic definition in the Rendering an audio graph section of the spec? |
This is orthogonal to rendering: the rendering takes the list of all The rendering algorithm is already quite complicated. Maybe it would be best to define something like the "list of |
Oh right. This is about lifetime. I guess I still don't understand how we should describe a lifetime algorithm for any node at all beyond what we've already said. We have these references defined in the spec, and UAs do garbage collection on any node that lacks references. |
We need to define exactly what happens when you render audio for an AudioWorklet. This allow us to get access to the return value of Rendering audio for an
At the last step, if the node still has input, it's kept alive. Otherwise, it can be collected. |
I will put together a PR that makes the Lifetime section of AudioNode normative, to resolve this issue. |
The definition of lifetime used in the fix to #475 may lack specificity in some way, so WG members have asked to add an issue reflecting the potential need for an algorithmic definition.
The text was updated successfully, but these errors were encountered: