Skip to content
Discussion options

You must be logged in to vote

If you want it to update in the view or drive Solid's view you do need it represented in the reactive system. This is no different than any other frontend framework(except maybe Angular zone). React won't update for things not in state. RxJS would expect you to drive this from an event, etc... Since AudioContext is not reactive your only recourse is to have it drive reactive values. If it is something you control that's easy enough. Otherwise you will need to tap into events when it is changed outside of your code and synchronize accordingly.

I believe AudioContext has an onstatechange event. But it looks like you'd need to compare the current and previous state yourself given the way it …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@munozu
Comment options

Answer selected by munozu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants