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.
Syntax
var audioParam = AudioParam.cancelAndHoldAtTime(cancelTime)
Parameters
- cancelTime
- A double representing the time (in seconds) after the
AudioContextwas first created after which all scheduled changes will be cancelled.
Return value
A reference to the AudioParam it was called on.
Specifications
| Specification | Status | Comment |
|---|---|---|
| Web Audio API The definition of 'cancelAndHoldAtTime()' in that specification. |
Working Draft | Initial definition. |
Browser Compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
cancelAndHoldAtTime | Chrome
Full support
57
| Edge Full support ≤79 | Firefox No support No | IE No support No | Opera
Full support
44
| Safari No support No | WebView Android
Full support
57
| Chrome Android
Full support
57
| Firefox Android No support No | Opera Android
Full support
43
| Safari iOS No support No | Samsung Internet Android
Full support
7.0
|
Legend
- Full support
- Full support
- No support
- No support
- Uses a non-standard name.
- Uses a non-standard name.
