title: how to do restart a AudioBufferSourceNode?
body: <p>I cannot find in the WebAudio API (<a href="http://webaudio.github.io/web-audio-api/" rel="nofollow">http://webaudio.github.io/web-audio-api/</a>) a way to restart  an <code>AudioBufferSourceNode</code>. The “loop” mode is not appropriate as I need to restart the node before it ends.</p>
  
  <p>I have tried to implement it by doing:</p>
  
  <ol>
  <li>stop</li>
  <li>recreate the node from the buffer</li>
  <li>start</li>
  </ol>
  
  <p>But then there is a fraction of second with no sound making the transition not smooth.</p>
  
  <p>What is the best way to restart an <code>AudioBufferSourceNode</code>?</p>