Specify the AnalyserNode attributes a bit more
authorEhsan Akhgari <ehsan@mozilla.com>
Sun, 31 Mar 2013 23:53:34 -0400
changeset 276 43f3002685dd
parent 275 c3db0b38c7ac
child 277 d666a17c340c
Specify the AnalyserNode attributes a bit more
webaudio/specification.html
--- a/webaudio/specification.html	Tue Mar 26 16:41:45 2013 -0700
+++ b/webaudio/specification.html	Sun Mar 31 23:53:34 2013 -0400
@@ -2954,7 +2954,8 @@
 <dl>
   <dt id="dfn-fftSize"><code>fftSize</code></dt>
     <dd><p>The size of the FFT used for frequency-domain analysis. This must be
-      a power of two. </p>
+      a non-zero power of two, otherwise an INDEX_SIZE_ERR exception MUST be thrown.
+      The default value is 2048.</p>
     </dd>
 </dl>
 <dl>
@@ -2965,19 +2966,28 @@
 <dl>
   <dt id="dfn-minDecibels"><code>minDecibels</code></dt>
     <dd><p>The minimum power value in the scaling range for the FFT analysis
-      data for conversion to unsigned byte values. </p>
+      data for conversion to unsigned byte values.
+      The default value is -100.
+      If the value of this attribute is set to a value more than or equal to <code>maxDecibels</code>,
+      an INDEX_SIZE_ERR exception MUST be thrown.</p>
     </dd>
 </dl>
 <dl>
   <dt id="dfn-maxDecibels"><code>maxDecibels</code></dt>
     <dd><p>The maximum power value in the scaling range for the FFT analysis
-      data for conversion to unsigned byte values. </p>
+      data for conversion to unsigned byte values.
+      The default value is -30.
+      If the value of this attribute is set to a value less than or equal to <code>minDecibels</code>,
+      an INDEX_SIZE_ERR exception MUST be thrown.</p>
     </dd>
 </dl>
 <dl>
   <dt id="dfn-smoothingTimeConstant"><code>smoothingTimeConstant</code></dt>
     <dd><p>A value from 0 -&gt; 1 where 0 represents no time averaging
-      with the last analysis frame. </p>
+      with the last analysis frame.
+      The default value is 0.8.
+      If the value of this attribute is set to a value less than 0 or more than 1,
+      an INDEX_SIZE_ERR exception MUST be thrown.</p>
     </dd>
 </dl>
 </div>