Remove the optional 'in' keyword from the Web IDL method declarations
authorEhsan Akhgari <ehsan@mozilla.com>
Wed, 15 Aug 2012 22:47:21 -0400
changeset 129 f1156dd2a516
parent 128 38a736c48855
child 130 5d9d49158cd9
Remove the optional 'in' keyword from the Web IDL method declarations
webaudio/specification.html
--- a/webaudio/specification.html	Wed Aug 15 22:42:03 2012 -0400
+++ b/webaudio/specification.html	Wed Aug 15 22:47:21 2012 -0400
@@ -715,49 +715,49 @@
             readonly attribute AudioListener listener;
             readonly attribute unsigned long activeSourceCount;
 
-            AudioBuffer createBuffer(in unsigned long numberOfChannels, in unsigned long length, in float sampleRate)
+            AudioBuffer createBuffer(unsigned long numberOfChannels, unsigned long length, float sampleRate)
                 raises(DOMException);
 
-            AudioBuffer createBuffer(in ArrayBuffer buffer, in boolean mixToMono)
+            AudioBuffer createBuffer(ArrayBuffer buffer, boolean mixToMono)
                 raises(DOMException);
 
-            void decodeAudioData(in ArrayBuffer audioData,
-                                 in AudioBufferCallback successCallback,
-                                 in optional AudioBufferCallback errorCallback)
+            void decodeAudioData(ArrayBuffer audioData,
+                                 AudioBufferCallback successCallback,
+                                 optional AudioBufferCallback errorCallback)
                 raises(DOMException);
 
 
             <span class="comment">// AudioNode creation </span>
             AudioBufferSourceNode createBufferSource();
 
-            MediaElementAudioSourceNode createMediaElementSource(in HTMLMediaElement mediaElement)
+            MediaElementAudioSourceNode createMediaElementSource(HTMLMediaElement mediaElement)
                 raises(DOMException);
 
-            MediaStreamAudioSourceNode createMediaStreamSource(in MediaStream mediaStream)
+            MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream)
                 raises(DOMException);
 
-            JavaScriptAudioNode createJavaScriptNode(in unsigned long bufferSize,
-                                                     in optional unsigned long numberOfInputChannels = 2,
-                                                     in optional unsigned long numberOfOutputChannels = 2)
+            JavaScriptAudioNode createJavaScriptNode(unsigned long bufferSize,
+                                                     optional unsigned long numberOfInputChannels = 2,
+                                                     optional unsigned long numberOfOutputChannels = 2)
                 raises(DOMException);
 
             RealtimeAnalyserNode createAnalyser();
             AudioGainNode createGainNode();
-            DelayNode createDelayNode(in optional double maxDelayTime);
+            DelayNode createDelayNode(optional double maxDelayTime);
             BiquadFilterNode createBiquadFilter();
             AudioPannerNode createPanner();
             ConvolverNode createConvolver();
 
-            AudioChannelSplitter createChannelSplitter(in optional unsigned long numberOfOutputs = 6)
+            AudioChannelSplitter createChannelSplitter(optional unsigned long numberOfOutputs = 6)
                 raises(DOMException);
 
-            AudioChannelMerger createChannelMerger(in optional unsigned long numberOfInputs = 6)
+            AudioChannelMerger createChannelMerger(optional unsigned long numberOfInputs = 6)
                 raises(DOMException);
 
             DynamicsCompressorNode createDynamicsCompressor();
 
             Oscillator createOscillator();
-            WaveTable createWaveTable(in Float32Array real, in Float32Array imag)
+            WaveTable createWaveTable(Float32Array real, Float32Array imag)
                 raises(DOMException);
 
         };
@@ -1053,13 +1053,13 @@
 
     interface <dfn id="dfn-AudioNode">AudioNode</dfn> {
 
-        void connect(in AudioNode destination, in optional unsigned long output = 0, in optional unsigned long input = 0)
+        void connect(AudioNode destination, optional unsigned long output = 0, optional unsigned long input = 0)
             raises(DOMException);
 
-        void connect(in AudioParam destination, in optional unsigned long output = 0)
+        void connect(AudioParam destination, optional unsigned long output = 0)
             raises(DOMException);
 
-        void disconnect(in optional unsigned long output = 0)
+        void disconnect(optional unsigned long output = 0)
             raises(DOMException);
 
         readonly attribute AudioContext context;
@@ -1308,19 +1308,19 @@
         readonly attribute float defaultValue;
 
         <span class="comment">// Parameter automation. </span>
-        void setValueAtTime(in float value, in float time);
-        void linearRampToValueAtTime(in float value, in float time);
-        void exponentialRampToValueAtTime(in float value, in float time);
+        void setValueAtTime(float value, float time);
+        void linearRampToValueAtTime(float value, float time);
+        void exponentialRampToValueAtTime(float value, float time);
 
         <span class="comment">// Exponentially approach the target value with a rate having the given time constant. </span>
-        void setTargetValueAtTime(in float targetValue, in float time, in float timeConstant);
+        void setTargetValueAtTime(float targetValue, float time, float timeConstant);
 
         <span class="comment">// Sets an array of arbitrary parameter values starting at time for the given duration. </span>
         <span class="comment">// The number of values will be scaled to fit into the desired duration. </span>
-        void setValueCurveAtTime(in Float32Array values, in float time, in float duration);
+        void setValueCurveAtTime(Float32Array values, float time, float duration);
         
         <span class="comment">// Cancels all scheduled parameter changes with times greater than or equal to startTime. </span>
-        void cancelScheduledValues(in float startTime);
+        void cancelScheduledValues(float startTime);
 
     };
     </code></pre>
@@ -1743,7 +1743,7 @@
 
         readonly attribute int numberOfChannels;
 
-        Float32Array getChannelData(in unsigned long channel);
+        Float32Array getChannelData(unsigned long channel);
 
     };
     </code></pre>
@@ -1835,9 +1835,9 @@
         attribute AudioParam playbackRate; 
         attribute boolean loop;
 
-        void noteOn(in double when);
-        void noteGrainOn(in double when, in double grainOffset, in double grainDuration);
-        void noteOff(in double when);
+        void noteOn(double when);
+        void noteGrainOn(double when, double grainOffset, double grainDuration);
+        void noteOff(double when);
 
     };
     </code></pre>
@@ -2119,9 +2119,9 @@
         attribute unsigned short panningModel;
 
         <span class="comment">// Uses a 3D cartesian coordinate system </span>
-        void setPosition(in float x, in float y, in float z);
-        void setOrientation(in float x, in float y, in float z);
-        void setVelocity(in float x, in float y, in float z);
+        void setPosition(float x, float y, float z);
+        void setOrientation(float x, float y, float z);
+        void setVelocity(float x, float y, float z);
 
         <span class="comment">// Distance model and attributes </span>         
         attribute unsigned short distanceModel;
@@ -2310,9 +2310,9 @@
         attribute float speedOfSound;
 
         <span class="comment">// Uses a 3D cartesian coordinate system </span>
-        void setPosition(in float x, in float y, in float z);
-        void setOrientation(in float x, in float y, in float z, in float xUp, in float yUp, in float zUp);
-        void setVelocity(in float x, in float y, in float z);
+        void setPosition(float x, float y, float z);
+        void setOrientation(float x, float y, float z, float xUp, float yUp, float zUp);
+        void setVelocity(float x, float y, float z);
 
     };
     </code></pre>
@@ -2522,11 +2522,11 @@
     interface <dfn id="dfn-RealtimeAnalyserNode">RealtimeAnalyserNode</dfn> : AudioNode {
 
         <span class="comment">// Real-time frequency-domain data </span>        
-        void getFloatFrequencyData(in Float32Array array);
-        void getByteFrequencyData(in Uint8Array array);
+        void getFloatFrequencyData(Float32Array array);
+        void getByteFrequencyData(Uint8Array array);
 
         <span class="comment">// Real-time waveform data </span>        
-        void getByteTimeDomainData(in Uint8Array array);
+        void getByteTimeDomainData(Uint8Array array);
 
         attribute unsigned long fftSize;
         readonly attribute unsigned long frequencyBinCount;
@@ -2829,9 +2829,9 @@
         readonly attribute AudioParam Q; // Quality factor
         readonly attribute AudioParam gain; // in Decibels
 
-        void getFrequencyResponse(in Float32Array frequencyHz,
-                                  in Float32Array magResponse,
-                                  in Float32Array phaseResponse);
+        void getFrequencyResponse(Float32Array frequencyHz,
+                                  Float32Array magResponse,
+                                  Float32Array phaseResponse);
 
     };
     </code></pre>
@@ -3133,9 +3133,9 @@
         readonly attribute AudioParam frequency; // in Hertz
         readonly attribute AudioParam detune; // in Cents
 
-        void noteOn(in double when);
-        void noteOff(in double when);
-        void setWaveTable(in WaveTable waveTable);
+        void noteOn(double when);
+        void noteOff(double when);
+        void setWaveTable(WaveTable waveTable);
 
     };
     </code></pre>