This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The cancelAndHoldAtTime() property of the AudioParam interface cancels all scheduled future changes to the AudioParam but holds its value at a given time until further changes are made using other methods. The new value is given in the value parameter.
var audioParam = AudioParam.cancelAndHoldAtTime(cancelTime)
AudioContext was first created after which all scheduled changes will be cancelled.A reference to the AudioParam it was called on.
| Specification | Status | Comment |
|---|---|---|
| Web Audio API The definition of 'cancelAndHoldAtTime()' in that specification. | Working Draft | Initial definition. |
| Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|---|
| Basic support |
57 Yes — 561 |
? | No | No |
44 Yes — 431 |
No |
| Feature | Android webview | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
|---|---|---|---|---|---|---|---|
| Basic support |
57 Yes — 561 |
57 Yes — 561 |
Yes | No | No |
44 Yes — 431 |
No |
1. Supported as cancelValuesAndHoldAtTime().
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/cancelAndHoldAtTime