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

> 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:
https://github.com/WebAudio/web-audio-api/issues/242#issuecomment-24793396

Received on Friday, 20 September 2013 07:09:46 UTC