-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add example with WASM audio worklet #3017
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
Conversation
33a8682
to
9ad6a3c
Compare
Thanks! I don't have the time to do an in-depth review of the code here but @Liamolucko would you be perhaps interested in doing so? If not no worries I'm happy to merge regardless. |
9ad6a3c
to
f82937a
Compare
An in-depth review would be great if possible. Note this example would benefit from the feature proposed in #3019. This example could be used as a test case if this feature is implemented. |
d08f1b6
to
b79323e
Compare
c173446
to
b553911
Compare
b553911
to
47fc753
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This example runs an oscillator in WASM inside an audio worklet. Volume and frequency is controllable in the UI exposed by the main thread. A design goal was to abstract worklet and JS module handling in a way that can be handled by a library with minimal annoyance for application developers. Therefore, the Rust modules gui, oscillator, wasm_audio, and dependent_module are fairly decoupled.