The cancelScheduledValues() method of the AudioParam Interface cancels all scheduled future changes to the AudioParam.
var AudioParam = AudioParam.cancelScheduledValues(startTime)
AudioContext was first created after which all scheduled changes will be cancelled.A reference to this AudioParam object. In some browsers older implementations of this interface return void.
var gainNode = audioCtx.createGain(); gainNode.gain.setValueCurveAtTime(waveArray, audioCtx.currentTime, 2); //'gain' is the AudioParam gainNode.gain.cancelScheduledValues(audioCtx.currentTime);
| Specification | Status | Comment |
|---|---|---|
| Web Audio API The definition of 'cancelScheduledValues' in that specification. | Working Draft |
| Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|---|
| Basic support | 14 webkit | (Yes) | 23 | No support | 15 webkit 22 (unprefixed) | 6 webkit |
| Unprefixed | (Yes) | (Yes) |
| Feature | Android | Android Webview | Edge | Firefox Mobile (Gecko) | Firefox OS | IE Phone | Opera Mobile | Safari Mobile | Chrome for Android |
|---|---|---|---|---|---|---|---|---|---|
| Basic support | No support | ? | (Yes) | 25 | 1.2 | No support | No support | 6 webkit | 28 webkit |
| Unprefixed | ? | (Yes) | (Yes) | (Yes) |
© 2005–2017 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/cancelScheduledValues