-
Notifications
You must be signed in to change notification settings - Fork 440
AudioWorkletProcessor can't be constructed like in the examples #1295
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
Comments
I would guess the problem is here: interface AudioWorkletProcessorConstructor {
(options: any): AudioWorkletProcessor;
} Means the types expect something like interface AudioWorkletProcessorConstructor {
new (options: any): AudioWorkletProcessor;
} Can you try that change if that fixes it (by changing it manualy in e.g. node_modules)? |
I made the modifications and now it does work correctly. I guess I can temporarily place the file in a local types folder until an update is pushed. |
I will create a PR. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletProcessor/AudioWorkletProcessor
When I copy the example code I get the following error:
Example provided:
The text was updated successfully, but these errors were encountered: