[Webkit-unassigned] [Bug 190644] onaudioprocess Occasionally Has Buffers With Zeroes as Data

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 31 09:02:13 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=190644

--- Comment #5 from Jer Noble <jer.noble at apple.com> ---
So first things first, I see that you're using a ScriptProcessorNode to pull data out of the AnalyserNode. This is going to be incredibly inefficient. The entire purpose of the AnalyserNode is to collect frequency information and make it available outside of the high-priority audio thread.  You're also using a SPN to draw to canvas! That's crazy pants!  Both of these things are the kind of thing you should be doing in a requestAnimationFrame() callback.  By adding a ScriptProcessorNode, you're degrading the performance of the entire audio graph, and you're making upstream nodes susceptible to main thread starvation and drop-outs.  First, try eliminating the ScriptProcessorNodes from Recorder.js; I think that might solve your mic dropouts.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181031/e84d653f/attachment.html>


More information about the webkit-unassigned mailing list