That is surprising, since playback start time of the buffer should be sample accurate according to the spec.
What if you try to schedule stop and start a little bit further ahead (so context.currentTime + 0.05) ?
Best regards,
Casper
On 23 jul. 2014, at 16:08, Yehonathan Sharvit <viebel@gmail.com> wrote:
> 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?