Issue metadata
Sign in to add a comment
|
Throw error if output object has wrong type in AudioWorklet process() |
||||||||||||||||||
Issue descriptionSee https://github.com/WebAudio/web-audio-api/issues/1515 We need to throw an error in this case.
,
Apr 13 2018
See: https://github.com/WebAudio/web-audio-api/issues/1515#issuecomment-381277112 This is a problem, but we don't know how to fix it yet. I would like to label this as "ExternalDependency".
,
Apr 20 2018
The NextAction date has arrived: 2018-04-20
,
Apr 20 2018
IMO throwing an error in AWGS does not anything, so I will change the status. Perhaps I won't start to work on it unless we have the spec-level solution for this. Also removing the "blocking" tag from this issue.
,
Apr 20 2018
,
Apr 20 2018
But we can certainly do the check now. And we can print a console message right? Spec doesn't forbid that.
,
Apr 24 2018
And then what can we print? A warning or an error?
,
Apr 24 2018
Isn't it an error? How are you supposed to continue when you've mangled the output array?
,
Apr 24 2018
Since the behavior for such case is unspecified, anything can be done. 1. Do nothing and produce silence. 2. Do nothing and produce silence. Mark the processor as "inactive". 3. Throw an exception and stop. 4. Warn user and ignore the array for the current render quantum. 5. Do nothing at all. 6. so on... It is a bit sad we can do basic things like this properly because the WGS doesn't support it.
,
Apr 24 2018
Producing silence is not doing nothing. :-) At this point, I don't care too much about exactly what happens except that we should print out something (warning or error or info) to the dev console that something unexpected happened. |
|||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||
Comment 1 by hongchan@chromium.org
, Mar 29 2018Owner: hongchan@chromium.org
Status: Assigned (was: Available)