Re: Looping a specific number of times

I presume you mean in case playback rate is changed?  Otherwise you can
just call stop() for now +duration*loops.
On Mar 20, 2013 2:22 PM, "Ehsan Akhgari" <ehsan.akhgari@gmail.com> wrote:

> There are use cases where you want to loop over an AudioBufferSourceNode a
> specific number of times.  I think that in the current spec, the only way
> to do that accurately would be to copy the same content enough number of
> times after in the buffer.  I think this could be a useful feature for us
> to support, and I think we can do that by adding a loopRounds (bikeshedding
> on the name to be done later ;) attribute to AudioBufferSourceNode, which
> basically stops the loop after loopRounds rounds if stop() is not called
> beforehand.
>
> What do you all think about this?
>
> Thanks!
> --
> Ehsan
> <http://ehsanakhgari.org/>
>

Received on Wednesday, 20 March 2013 21:26:29 UTC