问题
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