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

[web-audio-api] It makes no sense to use EventListener for onaudioprocess if ScriptProcessorNode isn't EventTarget (#116)

From: Olivier Thereaux <notifications@github.com>
Date: Wed, 11 Sep 2013 07:28:26 -0700
To: WebAudio/web-audio-api <web-audio-api@noreply.github.com>
Message-ID: <WebAudio/web-audio-api/issues/116@github.com>
> Originally reported on W3C Bugzilla [ISSUE-20764](https://www.w3.org/Bugs/Public/show_bug.cgi?id=20764) Thu, 24 Jan 2013 22:57:14 GMT
> Reported by Olli Pettay
> Assigned to 

First, EventListener should not be used for onfoo handlers.
EventHandler is the right type (or in very special legacy cases OnErrorEventHandler).

But more importantly, if ScriptProcessorNode isn't EventTarget dispatching
event to it isn't really possible, and the event wouldn't have any
.target.

So, either ScriptProcessorNode needs to become EventTarget somehow, and 
get normal event handling, or the callback needs to not use Event objects.

---
Reply to this email directly or view it on GitHub:
https://github.com/WebAudio/web-audio-api/issues/116
Received on Wednesday, 11 September 2013 14:28:53 UTC

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