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.

loop

Summary

Indicates if the audio data should play in a loop. The default value is false.

Property of apis/webaudio/AudioBufferSourceNodeapis/webaudio/AudioBufferSourceNode

Syntax

var result = AudioBufferSourceNode.loop;
AudioBufferSourceNode.loop = value;

Return Value

Returns an object of type BooleanBoolean

Examples

var source = audioCtx.createBufferSource();
source.loop = true;

Related specifications

Web Audio API
W3C Editor’s Draft