-
Notifications
You must be signed in to change notification settings - Fork 168
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
Handling of exceptions in audio worklet is not very clear #1984
Comments
I think we wanted to make it clear to authors that this was an error caused in the audio rendering thread (In the |
Or for an error during the AudioWorkletProcessor construction. Like I mentioned, we need to expose |
To be clear, this bug is about the fact that the actual event that gets fired is not clearly defined. There's a separate problem, handled by other issues, that what causes the event to get fired is not clearly defined at the places where that causation would occur... |
I assume the previous mention was in response to the similar ErrorEvent question asked at #1282 (comment).
The inability to clone errors for ErrorEvent.error may still make things a bit tricky. |
Fixed in specs; see whatwg/html#4268 Implementation support is unclear so far, but presumably will be added at some point. |
Also, you can fire an ErrorEvent with a null |
I find it weird that firing an |
Firing an Also, we're not talking about firing an |
Thanks for the input. Here's my plan: It's still problematic that WorkletGlobalScope doesn't have an error handling channel. The above discussion only applies to the node-processor level error handling. |
The plan sounds pretty reasonable to me. |
https://webaudio.github.io/web-audio-api/#dom-audioworkletnode-onprocessorerror says:
First, I assume it means that an event of type "processorerror" is fired, even though that's not what it says, right?
Second, is this event just an
Event
or does it implement some other event interface? Is there a reason to not make this anErrorEvent
, and name the attribute "onerror"?The text was updated successfully, but these errors were encountered: