MDN self-hosted library · e01.org

AudioParam: cancelAndHoldAtTime() method

Web Audio API

no runnable cells web-api-instance-method upstream source

Web Audio API

The cancelAndHoldAtTime() method 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

cancelAndHoldAtTime(cancelTime)

Parameters

  • cancelTime
  • : A double representing the time (in seconds) after the AudioContext was first created after which all scheduled changes will be canceled.

Return value

A reference to the AudioParam it was called on.

Specifications

Browser compatibility