Bug 21777 - Specify that "audioprocess" events should be dispatched to ScriptProcessorNodes when they're not connected to an output node.
authorPaul Adenot <paul@paul.cx>
Mon, 02 Sep 2013 18:26:41 +0200
changeset 332 92183159c02b
parent 331 fbf524d2cc9b
child 333 e590df8302d0
Bug 21777 - Specify that "audioprocess" events should be dispatched to ScriptProcessorNodes when they're not connected to an output node.
webaudio/specification.html
--- a/webaudio/specification.html	Mon Sep 02 10:30:56 2013 +0200
+++ b/webaudio/specification.html	Mon Sep 02 18:26:41 2013 +0200
@@ -2401,10 +2401,13 @@
 
 <p>The ScriptProcessorNode is constructed with a <code>bufferSize</code> which
 must be one of the following values: 256, 512, 1024, 2048, 4096, 8192, 16384.
-This value controls how frequently the <code>audioprocess</code> event
-is dispatched and how many sample-frames need to be processed each call.
-Lower numbers for <code>bufferSize</code> will result in a lower (better) <a
-href="#Latency-section">latency</a>. Higher numbers will be necessary to avoid
+This value controls how frequently the <code>audioprocess</code> event is
+dispatched and how many sample-frames need to be processed each call.
+<code>audioprocess</code> events are only dispatched if the
+<a href="#ScriptProcessorNode-section"><code>ScriptProcessorNode</code></a>
+has at least one input or one output connected.
+Lower numbers for <code>bufferSize</code> will result in a lower (better)
+<a href="#Latency-section">latency</a>. Higher numbers will be necessary to avoid
 audio breakup and <a href="#Glitching-section">glitches</a>.
 This value will be picked by the implementation if the bufferSize argument
 to <code>createScriptProcessor</code> is not passed in, or is set to 0.</p>