AudioParam.cancelScheduledValues()
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.
AudioParam
인터페이스의 cancelScheduledValues()
메서드는 AudioParam
에 예정된 모든 미래의 변화를 취소합니다.
구문
js
var AudioParam = AudioParam.cancelScheduledValues(startTime);
매개변수
- startTime
-
AudioContext
가 처음 생성된 이후 모든 예정된 변화가 취소될 시간 (초 단위로 표현됨) 을 나타내는 double.
반환
이 AudioParam
객체에 대한 참조. 몇몇 오래된 구현에서 이 메서드는 void를 반환합니다.
예제
js
var gainNode = audioCtx.createGain();
gainNode.gain.setValueCurveAtTime(waveArray, audioCtx.currentTime, 2); // 'gain' 이 AudioParam입니다.
gainNode.gain.cancelScheduledValues(audioCtx.currentTime);
명세서
Specification |
---|
Web Audio API # dom-audioparam-cancelscheduledvalues |
브라우저 호환성
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
cancelScheduledValues |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.