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

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

From: Olivier Thereaux <notifications@github.com>
Date: Wed, 11 Sep 2013 07:29:51 -0700
To: WebAudio/web-audio-api <web-audio-api@noreply.github.com>
Message-ID: <WebAudio/web-audio-api/issues/134/24244437@github.com>
> [Original comment](https://www.w3.org/Bugs/Public/show_bug.cgi?id=17388#4) by Jussi Kalliokoski on W3C Bugzilla. Tue, 21 Aug 2012 12:33:56 GMT

(In reply to [comment #4](#issuecomment-24244431))
> Regarding the suggested interface that returns a Float32Array... Returning a
> Float32Array would inevitably require GC. A better solution could be to fill
> out a Float32Array that is passed as an argument. I also think it would be a
> good idea to provide a method for returning a single value, for lessening the
> overhead for k-rate parameters.
> E.g:
> partial interface AudioProcessingEvent {
>     void getParamValues(DOMString name, Float32Array values);
>     float getParamValue(DOMString name);
> }

Good idea!

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.

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

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