Intent to Implement and Ship: WebAudio cancelAndHoldAtTime AudioParam automation method

26 views
Skip to first unread message

Raymond Toy

unread,
Dec 7, 2016, 11:36:06 AM12/7/16
to blink-dev

(Resend with correct subject line!)


Contact emails

rt...@chromium.org, hong...@chromium.org


Spec

http://webaudio.github.io/web-audio-api/

https://webaudio.github.io/web-audio-api/#widl-AudioParam-setValueCurveAtTime-AudioParam-Float32Array-values-double-startTime-double-duration


Summary

Add a new AudioParam automation method, cancelAndHoldAtTime, to cancel all automations after a given time and to hold the value of the parameter with the value at that time.


Motivation

See https://github.com/WebAudio/web-audio-api/issues/344 for a more complete discussion and motivation for adding this method.


Briefly, the new method greatly simplifies handling of canceling automations, especially if the automation is currently running.  Without this method, the developer would have to compute the actual value of the automation and set the value directly himself for all the nodes that need to be changed.  The algorithm given in https://webaudio.github.io/web-audio-api/#widl-AudioParam-cancelAndHoldAtTime-AudioParam-double-cancelTime shows how complicated in general it would be for the developer to do.



Interoperability and Compatibility Risk

As a new method, there is no compatibility risk.  We fully expect all browsers to implement this method consistently since the precise algorithm is part of the specification.


Ongoing technical constraints

None


Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes.


OWP launch tracking bug

http://crbug.com/432934



Link to entry on the feature dashboard

https://www.chromestatus.com/features/5116894524735488


Requesting approval to ship?

Yes

Chris Harrelson

unread,
Dec 7, 2016, 1:09:54 PM12/7/16
to Raymond Toy, blink-dev
LGTM1 again.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

TAMURA, Kent

unread,
Dec 8, 2016, 1:40:40 AM12/8/16
to Chris Harrelson, Raymond Toy, blink-dev
LGTM2

--
TAMURA Kent
Software Engineer, Google


林澔澔

unread,
Dec 12, 2016, 9:20:18 AM12/12/16
to blink-dev, rt...@chromium.org


Raymond Toy於 2016年12月8日星期四 UTC+8上午12時36分06秒寫道:

Philip Jägenstedt

unread,
Dec 13, 2016, 10:33:18 AM12/13/16
to TAMURA, Kent, Chris Harrelson, Raymond Toy, blink-dev
LGTM3

LGTM2


LGTM1 again.

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.




Reply all
Reply to author
Forward
0 new messages