This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

createDelay

Summary

Creates a DelayNode representing a variable delay line. Default delay is 0 seconds.

Method of apis/webaudio/AudioContextapis/webaudio/AudioContext

Syntax

var  = AudioContext.createDelay(maxDelayTime);

Parameters

maxDelayTime

Data-type
Number

(Optional)

Specifies the maximum delay time in seconds allowed for the delay line. If specified, this value must be greater than zero and less than three minutes or a NOT_SUPPORTED_ERR exception will be thrown.

Return Value

Returns an object of type

DelayNode

Examples

var audioCtx = new AudioContext();
var synthDelay = audioCtx.createDelay(5.0);

Related specifications

W3C Web Audio API
W3C Editor’s Draft