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

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

From: Ashley Gullen <ashley@scirra.com>
Date: Tue, 28 Oct 2014 16:55:03 +0000
Message-ID: <CAABs73jWUjd8mMp1JFJS4caM6zDG8MwJcTb5uJub4DZ5NoV5EA@mail.gmail.com>
To: Dale Curtis <dalecurtis@chromium.org>
Cc: "whatwg@whatwg.org" <whatwg@whatwg.org>
Can this be used for gapless looping of the same track? This is a common
request for game developers looking to seamlessly loop a music or ambience
track: https://code.google.com/p/chromium/issues/detail?id=353072

Ashley


On 27 October 2014 20:09, Dale Curtis <dalecurtis@chromium.org> wrote:

> 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 Tuesday, 28 October 2014 16:55:30 UTC

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