lichen-community-systems / Flocking

Flocking - Creative audio synthesis for the Web
GNU General Public License v2.0
699 stars 60 forks source link

flock.audio.encode should do the actual encoding in a Web Worker so that the main thread doesn't block #112

Open colinbdclark opened 9 years ago

colinbdclark commented 9 years ago

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.