Require alternate names
authorcrogers
Tue, 02 Apr 2013 18:15:22 -0700
changeset 281 60756776f3b6
parent 280 005ecbd7710c
child 282 0e2f82fdc9f7
Require alternate names
webaudio/specification.html
--- a/webaudio/specification.html	Tue Apr 02 17:56:18 2013 -0700
+++ b/webaudio/specification.html	Tue Apr 02 18:15:22 2013 -0700
@@ -5131,24 +5131,48 @@
 </p>
 <blockquote>
 <pre>
-AudioBufferSourceNode.noteOn() has been changed to <b>start()</b>
-AudioBufferSourceNode.noteGrainOn() has been changed to <b>start()</b>
-AudioBufferSourceNode.noteOff() has been changed to <b>stop()</b>
-
-AudioContext.createGainNode() has been changed to <b>createGain()</b>
-AudioContext.createDelayNode() has been changed to <b>createDelay()</b>
-AudioContext.createJavaScriptNode() has been changed to <b>createScriptProcessor()</b>
-
-OscillatorNode.noteOn() has been changed to <b>start()</b>
-OscillatorNode.noteOff() has been changed to <b>stop()</b>
-
-AudioParam.setTargetValueAtTime() has been changed to <b>setTargetAtTime()</b>
+
+partial interface <dfn>AudioBufferSourceNode</dfn> {
+    // Same as start()
+    void noteOn(double when);
+    void noteGrainOn(double when, double grainOffset, double grainDuration);
+    
+    // Same as stop()
+    void noteOff(double when);
+};
+
+partial interface <dfn>AudioContext</dfn> {
+    // Same as createGain()
+    GainNode createGainNode();
+    
+    // Same as createDelay()
+    DelayNode createDelayNode(optional double maxDelayTime = 1.0);
+
+    // Same as createScriptProcessor()
+    ScriptProcessorNode createJavaScriptNode(unsigned long bufferSize,
+                                             optional unsigned long numberOfInputChannels = 2,
+                                             optional unsigned long numberOfOutputChannels = 2);
+};
+
+partial interface <dfn>OscillatorNode</dfn> {
+    // Same as start()
+    void noteOn(double when);
+    
+    // Same as stop()
+    void noteOff(double when);
+};
+
+partial interface <dfn>AudioParam</dfn> {
+    // Same as setTargetAtTime()
+    void setTargetValueAtTime(float target, double startTime, double timeConstant);
+};
+
 </pre>
 </blockquote>
 
 <p>Some attributes taking constant values have changed during API review.
 The old way uses integer values, while the new way uses Web IDL string values.
-It is recommended that an implementation support both integer and string values
+An implementation must support both integer and string values
 for setting these attributes:
 </p>