[web-audio-api] decodeAudioData should accept a mime-type (#7)

> Originally reported on W3C Bugzilla [ISSUE-18510](https://www.w3.org/Bugs/Public/show_bug.cgi?id=18510) Thu, 09 Aug 2012 16:16:41 GMT
> Reported by Tony Ross [MSFT]
> Assigned to 

The decodeAudioData method on AudioContext is stated to support any of the formats supported by the <audio> element, but unlike the <audio> element it doesn't allow the author to state the format of the audio data (since the ArrayBuffer is already a step removed from the XMLHttpRequest likely used to fetch the data).

We should fix this by adding an (ideally required) contentType argument to decodeAudioData to communicate the format of the audio in the provided ArrayBuffer.

---
Reply to this email directly or view it on GitHub:
https://github.com/WebAudio/web-audio-api/issues/7

Received on Wednesday, 11 September 2013 14:28:38 UTC