AudioBufferSourceNode: how to do restart?

I cannot find in the API (http://webaudio.github.io/web-audio-api/) a way
to restart  an AudioBufferSourceNode. The “loop” mode is not appropriate as
I need to restart the node before it ends.

I have tried to implement it by doing:
1. stop
2. recreate the node from the buffer
3. start

But then there is a fraction of second with no sound making the transition
not smooth.

What is the best way to restart an AudioBufferSourceNode?

Received on Friday, 25 July 2014 11:35:17 UTC