Re: Using the Web Audio API in Web Workers

2015-04-09 Thread Joe Berkovitz
Alex - I'd say the question is there all right and is still very significant as an architectural issue, but it's not truly forced by Worker support. I think that what is being asked for here is a Worker-based AudioContext whose output will be mixed into the (default) audio destination, much like an

Re: Using the Web Audio API in Web Workers

2015-04-08 Thread Chris Wilson
Yes. Although realistically, the default output (and input) of Web Audio isn't going in/out from the main thread anyway - it's going in and out of the audio thread, and if one believes data is in the main thread we already have this problem. :) On Wed, Apr 8, 2015 at 3:47 PM, Alex Russell wrot

Re: Using the Web Audio API in Web Workers

2015-04-08 Thread Alex Russell
It sounds like this would force the question about "what is the default output of Web Audio anyway?". As long as it has only been available from the main thread, this hasn't been pressing, but now if we make this available in workers (and, perhaps as a result, available inside sub-workers construct

Re: Using the Web Audio API in Web Workers

2015-04-08 Thread Joe Berkovitz
Thanks, Chris -- Done. On Wed, Apr 8, 2015 at 4:57 PM, Chris Wilson wrote: > These notes would be good to have in the Worker issue on the spec. Could > you paste them into https://github.com/WebAudio/web-audio-api/issues/16? > > On Wed, Apr 8, 2015 at 1:54 PM, Joe Berkovitz wrote: > >> Hi Ashl

Re: Using the Web Audio API in Web Workers

2015-04-08 Thread Chris Wilson
These notes would be good to have in the Worker issue on the spec. Could you paste them into https://github.com/WebAudio/web-audio-api/issues/16? On Wed, Apr 8, 2015 at 1:54 PM, Joe Berkovitz wrote: > Hi Ashley, > > What I can tell you is that it's definitely come up a lot, and was even > discu

Re: Using the Web Audio API in Web Workers

2015-04-08 Thread Joe Berkovitz
Hi Ashley, What I can tell you is that it's definitely come up a lot, and was even discussed on the most recent conference call since we were already talking about the need for WebMIDI access in workers. Your implementation ideas are also helpful. Right now we are weighing the priorities of the t

Using the Web Audio API in Web Workers

2015-04-08 Thread Ashley Gullen
We develop a HTML5 game engine and our goal is to ultimately have the entire engine running from a Web Worker, off the main thread. There is progress on getting canvas rendering from workers specced. The last major hurdle to running an entire game engine in a worker is audio playback. Currently AF