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:


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