Re: asynchronous vs synchronous instantiation of AudioWorkerNodes

> 
> FWIW, I just made a complete example on how to implement a Sine node on top of my proposal: https://gist.github.com/jussi-kalliokoski/aa84fbb4cde7fc54ff01

Jussi,

That looks pretty much in line with my proposal.

One difference is that you put the node-construction method on the context instead of the worker.

A more substantive difference is that you seem to be giving the worker access to the actual AudioWorkerNode object, the same one that’s in the main thread. I’m thinking that probably breaks the required isolation between the worker scope and the main thread. That’s why I proposed a different “node processor” object type inside the worker: an object that represents the node from the audio-thread’s perspective, but isn’t actually the node itself.

.            .       .    .  . ...Joe

Received on Monday, 10 November 2014 16:47:30 UTC