W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2013

Re: [web-audio-api] Web Audio API can't be implemented in JS (#242)

From: Jussi Kalliokoski <notifications@github.com>
Date: Fri, 20 Sep 2013 00:09:19 -0700
To: WebAudio/web-audio-api <web-audio-api@noreply.github.com>
Cc: W3C Audio Working Group Notifications <public-audio@w3.org>
Message-ID: <WebAudio/web-audio-api/issues/242/24793396@github.com>
> What things?
> Gecko never has the main thread wait on the audio thread.

How have you implemented `getChannelData` then? As a quick shot at it the only ways I can think of to do this:
 * The audio data of AudioBuffers is stored on the main thread and copied to the audio thread whenever `AudioBufferSourceNode#buffer` is set. I suppose this would be the most viable option for JS, but terribly inefficient.
 * Shared memory? Probably not, since that would go against your proposal. :)
 * COW? This seems like the most likely option to me, but this can't be done in JS.

Reply to this email directly or view it on GitHub:
Received on Friday, 20 September 2013 07:09:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:25 UTC