Kagami / vmsg

:musical_note: Library for creating voice messages
https://kagami.github.io/vmsg/
Creative Commons Zero v1.0 Universal
348 stars 58 forks source link

Enable reuse of worker; Prevent instantiation of multiple workers #35

Closed Trildar closed 5 years ago

Trildar commented 5 years ago

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.

Kagami commented 5 years ago

Thank you.