ScriptProcessorNode - prevent jittering?

混江龙づ霸主 提交于 2019-12-12 04:23:11

问题


I'm using a ScriptProcessorNode in order to record audio from a MediaStream/MediaStreamNode. Any time a UI operation blocks the main thread a little bit (like drawing on a canvas), the audio result is jittery at those specific moments.

It seems like AudioWorker is eventually going to be implemented, which I think would solve my problem, but as of now, what is the solution?

Cheers!


回答1:


Use MediaRecorder API to record rather than ScriptProcessor, is my only advice.



来源:https://stackoverflow.com/questions/40810359/scriptprocessornode-prevent-jittering

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!