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

2014-10-28 Thread Ashley Gullen
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 dalecur...@chromium.org wrote: Hi,

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

2014-10-28 Thread Dale Curtis
Yes, both WebAudio and MSE can do that, though I'd probably lean towards WebAudio for anything game related. Using WebAudio just create a buffer source and set the loop attribute: https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode.loop The way you could do it with MediaSource

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

2014-10-28 Thread Ashley Gullen
Web Audio is unsuitable for music tracks due to needing to download and fully decompress in to memory the entire track before starting playback. It would be nice if this could just work with the HTML5 audio loop tag. Ashley On 28 October 2014 18:06, Dale Curtis dalecur...@chromium.org wrote:

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

2014-10-28 Thread Dale Curtis
Unfortunately, making loop in the bare audio tag sample accurate in Chrome is non-trivial for a variety of reasons, so it's unlikely to happen anytime soon. The MSE based approach should work great in the meantime; I've used the approach described above for seamless audio+video looping. - dale

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

2014-10-27 Thread Robert O'Callahan
On Sun, Oct 26, 2014 at 2:30 AM, David Kendal m...@dpk.io wrote: Hi, http://w3.org/mid/10b10a1d-8b84-4015-8d49-a45b87e4b...@dpk.io Web Audio should be usable for this. If it doesn't work due to brower bugs, we should fix the browser bugs. I know we've fixed bugs related to this in Firefox

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

2014-10-27 Thread David Kendal
On 27 Oct 2014, at 12:08, Robert O'Callahan rob...@ocallahan.org wrote: Web Audio should be usable for this. If it doesn't work due to brower bugs, we should fix the browser bugs. I know we've fixed bugs related to this in Firefox this year so I'd like to know if obvious techniques still

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

2014-10-27 Thread Dale Curtis
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

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

2014-10-27 Thread Robert O'Callahan
On Tue, Oct 28, 2014 at 1:13 AM, David Kendal m...@dpk.io wrote: On 27 Oct 2014, at 12:08, Robert O'Callahan rob...@ocallahan.org wrote: Web Audio should be usable for this. If it doesn't work due to brower bugs, we should fix the browser bugs. I know we've fixed bugs related to this in

[whatwg] Gapless playback problems with web audio standards

2014-10-25 Thread David Kendal
Hi, http://w3.org/mid/10b10a1d-8b84-4015-8d49-a45b87e4b...@dpk.io dpk

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

2014-10-25 Thread Silvia Pfeiffer
Have you tried media source extensions? Best Regards, Silvia. On 26 Oct 2014 00:30, David Kendal m...@dpk.io wrote: Hi, http://w3.org/mid/10b10a1d-8b84-4015-8d49-a45b87e4b...@dpk.io dpk

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

2014-10-25 Thread Kevin Marks
To get gapless, you need to be sample accurate, which is sub millisecond precision. A playlist element had been discussed before - making it the browser's job to be sample accurate. The quicktime plugin had a working version of this a decade ago; SMIL was supposed to be the way to do it, but a