W3C home > Mailing lists > Public > public-audio@w3.org > April to June 2012

Re: [WebAudioAPI] connecting AudioNodes from different AudioContexts

From: Chris Rogers <crogers@google.com>
Date: Tue, 15 May 2012 13:21:28 -0700
Message-ID: <CA+EzO0knaFy1CnoSWzB8LELX9v3hLbHHsK78GDxDo1h6BCtbSA@mail.gmail.com>
To: olli@pettay.fi
Cc: "public-audio@w3.org" <public-audio@w3.org>
On Tue, May 15, 2012 at 1:08 PM, Olli Pettay <Olli.Pettay@helsinki.fi>wrote:

> Hi,
>
>
> What should happen in the following case:
> var c1 = new AudioContext();
> var c2 = new AudioContext();
> var b = c1.createBufferSource()
> b.connect(c2.destination);
>
> Per draft that is supported, but there is the following
> "This interface [AudioContext] represents a set of AudioNode objects and
> their connections"
> so I'm not sure what should happen.


Sorry Olli, the spec needs to be more explicit that an exception will be
thrown because connections between AudioNodes of different contexts are not
allowed.



>
>
>
> -Olli
>
>
Received on Tuesday, 15 May 2012 20:21:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 15 May 2012 20:21:57 GMT