mozilla
Your Search Results

    AudioParam.cancelScheduledValues()

    The cancelScheduledValues() method of the AudioParam Interface cancels all scheduled future changes to the AudioParam.

    Syntax

    var gainNode = audioCtx.createGain();
    gainNode.gain.cancelScheduledValues(audioCtx.currentTime);
    

    Returns

    void.

    Examples

    var gainNode = audioCtx.createGain();
    gainNode.gain.setValueCurveAtTime(waveArray, audioCtx.currentTime, 2); //'gain' is the AudioParam
    gainNode.gain.cancelScheduledValues(audioCtx.currentTime);
    

    Parameters

    startTime
    A double representing the exact time (in seconds) after the AudioContext was first created after which all scheduled changes will be cancelled.

    Specifications

    Specification Status Comment
    Web Audio API
    The definition of 'cancelScheduledValues' in that specification.
    Working Draft  

    Browser compatibility

    Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
    Basic support 14 webkit 23 Not supported 15 webkit
    22 (unprefixed)
    6 webkit
    Feature Android Chrome Firefox Mobile (Gecko) Firefox OS IE Phone Opera Mobile Safari Mobile
    Basic support Not supported 28 webkit 25 1.2 Not supported Not supported webkit

    See also

    Document Tags and Contributors

    Contributors to this page: fscholz, chrisdavidmills
    Last updated by: fscholz,