loopStart
Summary
An optional value in seconds where looping should begin if the loop attribute is true. Its default value is 0, and it may usefully be set to any value between 0 and the duration of the buffer.
Property of apis/webaudio/AudioBufferSourceNodeapis/webaudio/AudioBufferSourceNode
Syntax
var result = AudioBufferSourceNode.loopStart;
AudioBufferSourceNode.loopStart = value;
Return Value
Returns an object of type NumberNumber
Examples
var source = audioCtx.createBufferSource();
source.loopStart = 2;
Related specifications
- Web Audio API
- W3C Editor’s Draft