W3C home > Mailing lists > Public > public-audio@w3.org > January to March 2015

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

From: Charlie <charlie651@gmail.com>
Date: Thu, 29 Jan 2015 01:27:17 -0600
Message-ID: <CADNnpLhFr2ed5eY1pHNS1tQ=27pQEq7dQpre1jUE_tpVEd-r-g@mail.gmail.com>
To: public-audio@w3.org
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

This archive was generated by hypermail 2.3.1 : Thursday, 29 January 2015 08:07:01 UTC