Re: [web-audio-api] (audioparam): AudioParam constructor (#134)

> [Original comment](https://www.w3.org/Bugs/Public/show_bug.cgi?id=17388#5) by Marcus Geelnard (Opera) on W3C Bugzilla. Tue, 21 Aug 2012 12:52:32 GMT

(In reply to [comment #5](#issuecomment-24244437))
> I also just realized that Chris Rogers's suggestion for passing the param
> instead of the name won't play well with audio processing in workers.

Exactly.

Not quite sure what the best solution would be, but for now the "name" string should do (and you'd get an exception if you try to create two AudioParams with the same name).

If string/hash lookups are deemed too costly to do per-callback, we could introduce something similar to uniform/attribute locations in WebGL (i.e. integers).

---
Reply to this email directly or view it on GitHub:
https://github.com/WebAudio/web-audio-api/issues/134#issuecomment-24244443

Received on Wednesday, 11 September 2013 14:36:21 UTC