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

[web-audio-api] JSAudioNode should be an EventTarget (#162)

From: Olivier Thereaux <notifications@github.com>
Date: Wed, 11 Sep 2013 07:28:43 -0700
To: WebAudio/web-audio-api <web-audio-api@noreply.github.com>
Message-ID: <WebAudio/web-audio-api/issues/162@github.com>
> Originally reported on W3C Bugzilla [ISSUE-17493](https://www.w3.org/Bugs/Public/show_bug.cgi?id=17493) Fri, 15 Jun 2012 01:04:12 GMT
> Reported by Dean Jackson
> Assigned to 

Currently, the spec says this:


interface JavaScriptAudioNode : AudioNode {
  attribute EventListener onaudioprocess;

  readonly attribute long bufferSize;

An "onaudioprocess" property? This is not the right way to expose this.

Instead, JavaScriptAudioNode should implement EventTarget, and thus get addEventListener, removeEventListener, etc. I'd prefer it if it removed the property, but I guess there is now some legacy content and there are some misguided developers who think that approach is acceptable.

Then there should be a "audioprocess" event (or something like that).

Reply to this email directly or view it on GitHub:
Received on Wednesday, 11 September 2013 14:29:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:24 UTC