wasm-audio-worklet example gives tons of warnings and some errors #3928
Unanswered
BlinkyStitt
asked this question in
Q&A
Replies: 1 comment
-
Try using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Motivation
I am trying to use rust in an Audio worklet, but am having trouble.
In Firefox, opening https://wasm-bindgen.netlify.app/exbuild/wasm-audio-worklet/ works although the console gives this warning: "An AudioContext was prevented from starting automatically. It must be created or resumed after a user gesture on the page." But clicking the slider to set volume or frequency does work.
Running locally gives literally over 10k lines of logs.
Opening the page does not work. There is only a white page. The console says there was a panic, so I added
console_error_panic_hook
to the Cargo.toml andconsole_error_panic_hook::set_once();
to the main. That gives a slightly more helpful error ofgetObject(...) is undefined
:I'm not sure where to go from here
Additional Context
Beta Was this translation helpful? Give feedback.
All reactions