W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2012

Decoding audio w/o an AudioContext object

From: Marcus Geelnard <mage@opera.com>
Date: Thu, 16 Aug 2012 06:22:01 +0000
Message-ID: <20120816062201.8olydm8phypwkgow@staff.opera.com>
To: public-audio@w3.org
Hi!

AudioContext provides two methods for decoding audio (both the  
synchronous createBuffer and the asynchronous decodeAudioData), and  
people will quite likely want to use these methods for decoding audio  
files without actually wanting to play them using an AudioContext.

Is there anything preventing us to allow users to do things like:

function decoded(data) {
   // Dostuff
}

AudioContext.decodeAudioData(rawData, decoded);


Also, both versions of the createBuffer method could be treated similarly.

Any opinions?


Regards,

   Marcus
Received on Thursday, 16 August 2012 06:22:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 16 August 2012 06:22:33 GMT