Web Audio API decoder instancing

Hi,

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?

Cheers,

Adam Bradley
Audio Systems Developer
Jagex Games Studio


-- 
IMPORTANT NOTICE

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