Looping a specific number of times

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:21:50 UTC