Audio-ISSUE-32 (AudioNodeReferences): AudioNode context and upstream/downstream references [Web Audio API]

Audio-ISSUE-32 (AudioNodeReferences): AudioNode context and upstream/downstream references [Web Audio API]

http://www.w3.org/2011/audio/track/issues/32

Raised by: Philip Jägenstedt
On product: Web Audio API

The AudioNode interface includes a reference to the creating context, but not to the connected inputs and outputs. This seems like an odd choice, since the context will typically be easy to find (there's usually only one) but walking the filter graph is very hard and currently requires building a wrapping implementation.

Suggestion:

Drop context, numberOfInputs and numberOfOutputs. Knowing the number of inputs/outputs is by itself not very useful.

Possibly, we could expose an Array-like object for access to the inputs and outputs, but only if the use cases are strong.

Received on Tuesday, 15 May 2012 13:46:31 UTC