title: Get the onended event for an AudioBuffer in HTML5/Chrome
body: <p>So I am playing audio file in Chrome and I want to detect when playing has ended so I can delete references to it. Here is my code</p>
  
  <pre><code>var source = context.createBufferSource();
  source.buffer = sound.buffer;
  source.loop = sound.loop;
  source.onended = function() { 
      delete playingSounds[soundName];
  }
  source.connect(mainNode);
  source.start(0, sound.start, sound.length);
  </code></pre>
  
  <p>however, the event handler doesn't fire. Is this not yet supported as described by the <a href="https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html" rel="nofollow">W3 specification</a>? Or am I doing something wrong?</p>