@@ -2009,14 +2009,18 @@ <h2 id="AudioBufferSourceNode">The AudioBufferSourceNode Interface</h2>
2009
2009
An optional value in seconds where looping should begin if the
2010
2010
< code > loop</ code > attribute is true. Its default < code > value</ code > is 0,
2011
2011
and it may usefully be set to any value between 0 and the duration of the
2012
- buffer.
2012
+ buffer. If loopStart is less than 0, looping will begin at 0. If
2013
+ loopStart is greater than the duration of the buffer, looping will begin
2014
+ at the end of the buffer.
2013
2015
</ dd >
2014
2016
< dt > attribute double loopEnd</ dt >
2015
2017
< dd >
2016
2018
An optional value in seconds where looping should end if the
2017
2019
< code > loop</ code > attribute is true. Its default < code > value</ code > is 0,
2018
2020
and it may usefully be set to any value between 0 and the duration of the
2019
- buffer.
2021
+ buffer. If loopEnd is less than 0, looping will end at 0. If
2022
+ loopEnd is greater than the duration of the buffer, looping will end
2023
+ at the end of the buffer.
2020
2024
</ dd >
2021
2025
2022
2026
< dt >
@@ -2042,7 +2046,11 @@ <h2 id="AudioBufferSourceNode">The AudioBufferSourceNode Interface</h2>
2042
2046
time in the buffer (in seconds) where playback will begin. If 0 is
2043
2047
passed in for this value, then playback will start from the beginning of
2044
2048
the buffer. An InvalidAccessError exception MUST be thrown if
2045
- < code > offset</ code > is negative or is not a finite number.
2049
+ < code > offset</ code > is negative or is not a finite number. If
2050
+ < code > offset</ code > is less than zero, playback will begin at the
2051
+ beginning of the buffer. If < code > offset</ code > is greater than
2052
+ < code > loopEnd</ code > , playback will begin at < code > loopEnd</ code >
2053
+ (and immediately loop to < code > loopStart</ code > ).
2046
2054
</ dd >
2047
2055
< dt > optional double duration</ dt >
2048
2056
< dd >
0 commit comments