web api instance method
AudioParam: cancelScheduledValues() method
The cancelScheduledValues() method of the AudioParam
Interface cancels all scheduled future changes to the AudioParam.
Syntax
cancelScheduledValues(startTime)
Parameters
startTime- : A double representing the time (in seconds) after the
AudioContextwas first created after which all scheduled changes will be cancelled.
- : A double representing the time (in seconds) after the
Return value
A reference to this AudioParam object. In some older implementations this
method returns undefined.
Examples
const gainNode = audioCtx.createGain();
gainNode.gain.setValueCurveAtTime(waveArray, audioCtx.currentTime, 2); // 'gain' is the AudioParam
gainNode.gain.cancelScheduledValues(audioCtx.currentTime);
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.