loopEnd
Summary
An optional value in seconds where looping should end 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.loopEnd;
AudioBufferSourceNode.loopEnd = value;
Return Value
Returns an object of type NumberNumber
Examples
var source = audioCtx.createBufferSource();
source.loopEnd = 3;
Related specifications
- Web Audio API
- W3C Editor’s Draft