W3C home > Mailing lists > Public > public-audio@w3.org > October to December 2012

Web Audio API decoder instancing

From: Bradley, Adam <adam.bradley@jagex.com>
Date: Thu, 20 Dec 2012 11:23:09 +0000
To: "'public-audio@w3.org'" <public-audio@w3.org>
Message-ID: <6DD3782C33561D44B47071B0994602640919393B27@exchange1>

I'm interested in finding out more information on the web audio API standard with regards to decoding encoded formats (Ogg/Mp3 etc.).

What I am wondering is why the standard only allows for a 'global' decoder that accepts an intact audio stream, rather than being able to instance a decoder object and then pass the audio data to it as and when the javascript application decides in chunks.

The reason I'm interested in this is that I am wanting to get large (>10min) audio files in Ogg format playing back reliably in HTML5 whilst using as little memory as possible. It seems, at least naively to me, that this would be handled better if we could decode the files in chunks using an instanced decoder and thus employ some manner of circular buffering technique to keep the memory requirements to a minimum.

Is this something that may be possible to build into the standard, or perhaps there is another existing solution to this issue that I am overlooking?


Adam Bradley
Audio Systems Developer
Jagex Games Studio


The sender does not guarantee that this message, including any attachment, is secure
or virus free. Also, it is confidential and may be privileged or otherwise protected
from disclosure. If you are not the intended recipient, do not disclose or copy it
or its contents. Please telephone or email the sender and delete the message
entirely from your system. No binding obligations or payment commitments are to be derived from the contents 
of this email unless and until a clear written agreement containing all the necessary 
terms and conditions is properly executed.

Jagex Limited is a company registered in England & Wales with company number
03982706 and a registered office at St John's Innovation Centre, Cowley Road, 
Cambridge, CB4 0WS, UK.
Received on Thursday, 20 December 2012 12:29:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:14 UTC