-
Notifications
You must be signed in to change notification settings - Fork 18
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
Dynamic lifetime issues and the node collection #469
Conversation
This issue arises when a graph involves nodes connecting to audio params. E.g. constant src -> playback rate -> buffer src. The playbackrate param is dropped alongside the buffer src if it has ended, but this leaves an edge from the constant src in place. To solve this we probably need a bit more refactoring, stay tuned
88e103c
to
85d873b
Compare
/bench |
|
Right, I think we should probably merge this as it solves a panic in the audio param dynamic lifetimes. |
No I didn't have time to make a simpler test bed, but I can test my app against this branch right now, the panic was rather easy to get, I let you now in the afternoon |
Just tested and I didn't manager to make it crash! |
Didn't understood all the details, but I will check that when needed and it looks all good to me |
Cool, good to hear! |
Apologies for the complex PR. I will let it simmer for a while and put some more thought in it, but wanted to share already.
Introduce AudioProcess::has_side_effects
A processor with no side effect will be dropped when the control handle
is gone and there are not output ports connected.
This makes the cleanup of AudioParams easier and more robust.
Relates to #397 and #468