W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2014

Re: [whatwg] Gapless playback problems with web audio standards

From: Dale Curtis <dalecurtis@chromium.org>
Date: Mon, 27 Oct 2014 13:09:27 -0700
Message-ID: <CAPUDrwcpDE0coQGNy3LXxNycJk2nM+piqrMEOUCCbEq7yDWMEA@mail.gmail.com>
To: whatwg@whatwg.org
Hi,

Chrome developer here, gapless playback should work with both WebAudio and
Media Source Extensions (MSE). I've fixed bugs in both implementations, so
if you have some test cases in Chrome that fail, I'd love to see them. As
luck has it, I've recently put an article together on how to use MSE for
gapless playback:

http://dalecurtis.github.io/llama-demo/index.html

We'll be posting it to HTML5Rocks in the near future. Feel free to contact
me if you have any questions. You also note that setTimeout() is not
precise enough for your usage; you should take a look at the WebAudio
scheduler or using WebWorkers:

http://www.html5rocks.com/en/tutorials/audio/scheduling/
https://github.com/chrisguttandin/worker-timers

If you only need your project to work in the foreground using
requestAnimationFrame is also an option. I'd first try to schedule as much
as you can in advance though.

- dale
Received on Monday, 27 October 2014 20:10:12 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:24 UTC