DelayNode.delayTime
The delayTime
property of the DelayNode
interface is an a-rate AudioParam
representing the amount of delay to apply.
delayTime
is expressed in seconds, its minimal value is 0
, and its maximum value is defined by the maxDelayTime
argument of the BaseAudioContext.createDelay
method that created it.
Syntax
var audioCtx = new AudioContext(); var myDelay = audioCtx.createDelay(5.0); myDelay.delayTime.value = 3.0;
Note: Though the AudioParam
returned is read-only, the value it represents is not.
Value
An AudioParam
.
Example
See BaseAudioContext.createDelay()
for example code.
Specifications
Specification |
---|
Web Audio API # dom-delaynode-delaytime |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
delayTime |
14 |
12 |
25 |
No |
15 |
6 |
≤37 |
18 |
25 |
14 |
Yes |
1.0 |
See also
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/DelayNode/delayTime