Worker initialization can be slow, so this allows early initialization of the worker as well as reuse between recordings. Currently, because calling Recorder.close() is the only defined interface for closing the AudioContext, all initialization has to be redone between recordings to prevent leaking of AudioContexts.
Worker initialization can be slow, so this allows early initialization of the worker as well as reuse between recordings. Currently, because calling Recorder.close() is the only defined interface for closing the AudioContext, all initialization has to be redone between recordings to prevent leaking of AudioContexts.