Bug 20039: Refine description of audio decoding
authorcrogers
Tue, 04 Dec 2012 15:35:17 -0800
changeset 234 6b85e7696c1d
parent 233 f3d3cf6ebe15
child 235 ef43ae5230bf
Bug 20039: Refine description of audio decoding
webaudio/specification.html
--- a/webaudio/specification.html	Tue Dec 04 15:23:07 2012 -0800
+++ b/webaudio/specification.html	Tue Dec 04 15:35:17 2012 -0800
@@ -924,9 +924,10 @@
   <dt id="dfn-createBuffer_2">The <code>createBuffer</code> from ArrayBuffer
   method</dt>
     <dd><p>Creates an AudioBuffer given the audio file data contained in the
-      ArrayBuffer. The ArrayBuffer can, for example, be loaded from an
-      XMLHttpRequest with the new <code>responseType</code> and
-      <code>response</code> attributes.</p>
+      ArrayBuffer. The ArrayBuffer can, for example, be loaded from an XMLHttpRequest's
+        <code>response</code> attribute after setting the <code>responseType</code> to "arraybuffer".
+         Audio file data can be in any of the
+        formats supported by the <code>audio</code> element.</p>
       <p>The <dfn id="dfn-buffer">buffer</dfn> parameter contains the audio
       file data (for example from a .wav file). </p>
       <p>The <dfn id="dfn-mixToMono">mixToMono</dfn> parameter determines if a
@@ -952,9 +953,9 @@
 <dl>
   <dt id="dfn-decodeAudioData">The <code>decodeAudioData</code> method</dt>
     <dd><p>Asynchronously decodes the audio file data contained in the
-      ArrayBuffer. The ArrayBuffer can, for example, be loaded from an
-      XMLHttpRequest using the <code>responseType</code> and
-      <code>response</code> attributes. Audio file data can be in any of the
+      ArrayBuffer. The ArrayBuffer can, for example, be loaded from an XMLHttpRequest's
+      <code>response</code> attribute after setting the <code>responseType</code> to "arraybuffer".
+       Audio file data can be in any of the
       formats supported by the <code>audio</code> element. </p>
       <p>The decodeAudioData() method is preferred over the createBuffer() from
       ArrayBuffer method because it is asynchronous and does not block the main