W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2011

Re: Concerning the gap-less output of real-time generated audio in JavaScript

From: Jussi Kalliokoski <jussi.kalliokoski@gmail.com>
Date: Mon, 11 Jul 2011 16:42:22 +0300
Message-ID: <CAJhzemWchtxezuODAEpnDvKzS9mUyPcaJkjGZECc9BYmH3tVGw@mail.gmail.com>
To: Joseph Berkovitz <joe@noteflight.com>
Cc: Grant Galitz <grantgalitz@gmail.com>, public-audio@w3.org
> Yet another approach is to directly request the audio destination node to
> pre-buffer N samples, which has the effect of requesting its source nodes
> (and consequently their attached graph of dependents) to provide those
> samples. This may be easier since it doesn't affect the audio graph on a
> piecemeal basis, doesn't raise issues of how to time-sync "immediate" writes
> and pipelined writes, and addresses the general (and probably occasional)
> need to pre-buffer some time interval based on application knowledge.

IMO, that is a very desirable feature as well.

I endorse supporting a blend of approaches (some developer control on
> buffering, layered on a robust automatic pipeline).  As a corollary I don't
> think that either approach alone is a cure for all ills.

My opinion lines very well with that. I'm also all in for as modular as
possible approach for this kind of API, after all, I don't think any of us
wants to rewrite thing in JS just to change a simple behaviour (such as the
resampling method of the AudioBufferNode).

> My experience is that there is generally no way in a complex runtime
> environment to outright prevent glitches, regardless of how much programmer
> smarts are in control of buffering. Also, just as developer-written code can
> "know" things about what the app environment is doing, a self-regulating
> callback method is able to "know" things about the what the internal browser
> environment is doing. Both types of knowledge are important.



> ... .  .    .       Joe
> *Joe Berkovitz*
> President
> Noteflight LLC
> 84 Hamilton St, Cambridge, MA 02139
> phone: +1 978 314 6271
> www.noteflight.com
Received on Monday, 11 July 2011 13:43:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:49:56 UTC