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

Re: Audio Workers - please review

From: Joseph Berkovitz <joe@noteflight.com>
Date: Thu, 11 Sep 2014 12:46:23 -0400
Cc: Ehsan Akhgari <ehsan@mozilla.com>, Chris Wilson <cwilso@google.com>, "public-audio@w3.org" <public-audio@w3.org>
Message-Id: <998CD495-A6D5-4A91-9968-BDB76AE47659@noteflight.com>
To: Jussi Kalliokoski <jussi.kalliokoski@gmail.com>
> Since the recent inclusion of add/removeParameter in the proposal, did anyone (especially Chris :-) consider whether we still truly need postMessage/onmessage support? If we removed it, it would render moot a lot of arguments about what happens when nodes try to talk to each other and might simplify everything a lot. Internode communication seems to me a way to cause a lot of mistaken assumptions re: synchronicity (see above). AudioParams seem cleaner and more in line with what native nodes do.
> I'd argue otherwise. The native nodes have features such as start(), stop(), setting the AudioBuffer of an AudioBufferSourceNode, the custom waveshape of an oscillator, reading data from an analyzer, the type of a filter, etc., none of which are representable reasonably with AudioParams.

I understand your argument. But instead of just accepting that this implies we must support postMessage, I’d like to ask a follow-on question: having allowed exposure of AudioParams in scripted nodes, do we also want to expose functions and attributes (e.g. to let the main thread set custom wave shapes, read analyzer data, etc. etc.)  It seems as though if the goal is to be able to implement native nodes with scripted nodes, this would be necessary, yes?

By the way, I think start/stop are understandable solely in terms of a node’s lifetime and sequencing of its onaudioprocess calls (granted they have nothing to do with AudioParams, but don’t see why they have to do with postMessage support either).

Received on Thursday, 11 September 2014 16:47:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:14 UTC