web-audio-apiscriptprocessor

ScriptProcessorNode - prevent jittering?


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!


Solution

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