At the moment, flock.audio.encode.wav() encodes buffers into sound files on the main thread. This will cause unacceptable blocking when encoding large audio files.
Instead, this work should be done in a Web Worker, and the API should be updated to be asynchronous.
At the moment,
flock.audio.encode.wav()
encodes buffers into sound files on the main thread. This will cause unacceptable blocking when encoding large audio files.Instead, this work should be done in a Web Worker, and the API should be updated to be asynchronous.