ScriptProcessorNode - prevent jittering?

353 Views Asked by At

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

There are 1 best solutions below

4
On BEST ANSWER

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