freeze arraybuffer to share between the main thread and AudioWorkerNodes in the audio processing thread

It would be nice to have a way to make an audio file available both to
an audio worker node and to the main thread, for example to be able to
do audio processing while showing a representation of the waveform as
part of the user interface.  Serializing and sending the file to the
worker will duplicate it in memory, and transferring it will make it
unavailable to the main thread.

If we could freeze an ArrayBuffer to allow it to be shared between the
threads, it should be a good middle ground.

This is maybe more of an issue w/ workers than w/ audio, but seems
particularly relevant here because transferring large files to
AudioWorkerNodes is likely to be a common use.

Received on Thursday, 29 January 2015 08:07:00 UTC