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

Support multiple component value broadcasters per component. #633

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

davidhealey
Copy link
Contributor

@christoph-hart
Copy link
Collaborator

how to you clear the list of attached value listeners? With the single slot you can just override it but now any attachment can't be undone.

@davidhealey
Copy link
Contributor Author

davidhealey commented Jan 26, 2025

how to you clear the list of attached value listeners? With the single slot you can just override it but now any attachment can't be undone.

Sorry, just saw your comment.

Are you referring to removeListener/removeSource?

Ok I just did a little test, if you set the broadcaster reference to -1 (or anything that isn't a broadcaster) it removes it - at least it's no longer in the graph.

HiseSnippet 878.3ocsVstSSDDEd1BKZqJQR7AXy9qhAgtqEnJwXkRQafBMVjXBwPFlc11Ir6LalcJZCgDeA7c02.8L6t8lz.klX+QSO2+Nm4bosjBBMNVHQFENoeDEY7Ty184pt05hYbTi8PFKa1DGqnRqTV61OBGGS8PFFK7QMCi7KhR9762uKN.yIzQrPnSELB8PVHSMhaqpGvBB1G6QOgENl1kq1fH30DAhd.dVvrDJBStD2gdDVqVNSzmvwcQFuzzyorieEBdqJNkcID2Ja69lsITruOcKmM2tbE+x9XRIWjwR08XJgrsBqnwfS2U30ucWw24oA3TVL6h.plvA0FhbJaTstr.uVCJNwHjwhsFUpVHsT8BylLO1P9iJYOOQf0HKFunYj6tfjyC.RFiAoESgzJlsIRVjZjDMddhYCN7BBkD5DPIUWTtekyrl.zfqVODeIceIPLzhhaUpzZVvWqtSgBarg0tRA1ij1R3Q8YblhI3EfWtXk0UXo0EDGq2YUm2gwoqSjTHMGylhWay7reqkMnl8ZV1XYmXf7LahHLRvALn4dENnG09a2niIn35XkBS5dhn1.kNUqPQ6C3hKRbi8PM87NjAAhCgBvscSpBq0vuGmnAZwgwYMqjnrZgqKjGR+XQ.c8HIiqJZ6ncWRvkzNPB4NaIj6rlPtybB4N0Dx8glPtCSnzj4UN6LvdKA+HghdLuXhgEtof0+Jx2epxz8LRQP..roIVObKuKCKx6EdAUNNr0JBMySNgrzrMgPRagGSQAuAzcdbDMideQfmtyW+6aOOgxlAzSVYHDTUkLWsb1bU6.lGUhXfSdjYxaEJA7iuxC8kF6gU3AtA7HDkHpTwzIiwdzqfUhoiq4M2iFeoRDkna1yHj+2aP+wv.9yyp1eTzOpJ51KEf0QBudAX0j6nzauyD.OKSrXPO7yiYp9iuc+Ar3pzct3ZVg3JlsXJR2oiwbSAiPI++AFyV2+Ly5v8EhZD.Wzb+uNu61umv+YQOEi2oIVIYvis4Q8BaCmEITH5bNM.btoQNcSaJcIMstBzlx8RH9C7ISnil1HSny.gnPLQJNmj1pqOn73DN.l3IGbyCW9AZqoziGB22NmPlzU2xP240vWOuFVddMby40vslWC2ddMrx8an9ue7gdJQX5XCB0rU8jcRFF04XnCLoaE8W3JvKmC

Now of course this won't work with a const, you need to use a reg. Perhaps we need a broadcaster.unattach, or broadcaster.destroy function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants