-
Notifications
You must be signed in to change notification settings - Fork 440
fix: audioworklet registerProcessor should expect a constructor not a function #1296
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
Thanks for the PR! This section of the codebase is owned by @saschanaz - if they write a comment saying "LGTM" then it will be merged. |
Could you add a unit test too? And I wonder a new type is needed here: interface AudioWorkletProcessorImpl extends AudioWorkletProcessor {
process(...);
}
interface AudioWorkletProcessorConstructor {
new (options: any): AudioWorkletProcessorImpl;
} |
Will look into it... |
closes also #1298 |
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.
@saschanaz added test and extra type.
@@ -0,0 +1,8 @@ | |||
registerProcessor( |
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.
Added test in extra folder as other files has to be included. If other setup is needed say how to change it.
lgtm Thank you! |
@saschanaz did not get merged!? |
Hmm? LGTM |
Merging because @saschanaz is a code-owner of all the changes - thanks! |
fixes #1295
see also https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletProcessor/AudioWorkletProcessor