On Tue, Jul 24, 2012 at 11:40 AM, Adam Goode <agoode@google.com> wrote: > > I essentially want to have a callback for getting new control data, to > keep the event pipeline filled without overflowing any noteOn buffer or > falling behind. Is the javascript node appropriate for this? I feel like > there could be something more explicit, like a setInterval off of the audio > context. > > I've run into the same issue, and this has been discussed on the list before. http://lists.w3.org/Archives/Public/public-audio/2011OctDec/0080.html AFAIK, either using setTimeout or a JavaScriptNode is the currently the best solution. There is an issue in the webkit issue tracker to create a callbackAtTime() method on audio context. https://bugs.webkit.org/show_bug.cgi?id=70061 I'm not sure if a similar issue exists on the Web Audio API issue tracker, but there probably should be one. I don't think window.requestAnimationFrame() is a solution, because the callback is only called when the browser frame is visible.Received on Tuesday, 24 July 2012 16:39:04 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 24 July 2012 16:39:04 GMT