Back to Content

AudioParam: cancelAndHoldAtTime() method

files/en-us/web/api/audioparam/cancelandholdattime/index.md

latest693 B
Original Source

{{APIRef("Web Audio API")}}

The cancelAndHoldAtTime() method of the {{domxref("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

js-nolint
cancelAndHoldAtTime(cancelTime)

Parameters

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

Return value

A reference to the {{domxref("AudioParam")}} it was called on.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}