--- a/webaudio/specification.html Sun Jan 27 09:45:30 2013 -0800
+++ b/webaudio/specification.html Mon Feb 04 16:06:13 2013 -0800
@@ -2468,20 +2468,20 @@
attribute PanningModelType panningModel;
<span class="comment">// Uses a 3D cartesian coordinate system </span>
- void setPosition(float x, float y, float z);
- void setOrientation(float x, float y, float z);
- void setVelocity(float x, float y, float z);
+ void setPosition(double x, double y, double z);
+ void setOrientation(double x, double y, double z);
+ void setVelocity(double x, double y, double z);
<span class="comment">// Distance model and attributes </span>
attribute DistanceModelType distanceModel;
- attribute float refDistance;
- attribute float maxDistance;
- attribute float rolloffFactor;
+ attribute double refDistance;
+ attribute double maxDistance;
+ attribute double rolloffFactor;
<span class="comment">// Directional sound cone </span>
- attribute float coneInnerAngle;
- attribute float coneOuterAngle;
- attribute float coneOuterGain;
+ attribute double coneInnerAngle;
+ attribute double coneOuterAngle;
+ attribute double coneOuterGain;
};
</code></pre>
@@ -2648,15 +2648,15 @@
interface <dfn id="dfn-AudioListener">AudioListener</dfn> {
<span class="comment">// same as OpenAL (default 1) </span>
- attribute float dopplerFactor;
+ attribute double dopplerFactor;
<span class="comment">// in meters / second (default 343.3) </span>
- attribute float speedOfSound;
+ attribute double speedOfSound;
<span class="comment">// Uses a 3D cartesian coordinate system </span>
- 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);
+ void setPosition(double x, double y, double z);
+ void setOrientation(double x, double y, double z, double xUp, double yUp, double zUp);
+ void setVelocity(double x, double y, double z);
};
</code></pre>
@@ -2886,10 +2886,10 @@
attribute unsigned long fftSize;
readonly attribute unsigned long frequencyBinCount;
- attribute float minDecibels;
- attribute float maxDecibels;
-
- attribute float smoothingTimeConstant;
+ attribute double minDecibels;
+ attribute double maxDecibels;
+
+ attribute double smoothingTimeConstant;
};
</code></pre>