Index: modules/webaudio/PannerNode.idl |
diff --git a/modules/webaudio/PannerNode.idl b/modules/webaudio/PannerNode.idl |
index 455740817bac59fb302087ef51c0a3ce771a9912..cbd1fc8f797315f018634e38858fb9cfe55079a8 100644 |
--- a/modules/webaudio/PannerNode.idl |
+++ b/modules/webaudio/PannerNode.idl |
@@ -22,22 +22,23 @@ |
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+enum PanningModelType { |
+ "equalpower", |
+ "HRTF" |
+}; |
+ |
+enum DistanceModelType { |
+ "linear", |
+ "inverse", |
+ "exponential" |
+}; |
+ |
[ |
NoInterfaceObject, |
Conditional=WEB_AUDIO |
] interface PannerNode : AudioNode { |
- // Panning model |
- const unsigned short EQUALPOWER = 0; |
- const unsigned short HRTF = 1; |
- const unsigned short SOUNDFIELD = 2; |
- |
- // Distance model |
- const unsigned short LINEAR_DISTANCE = 0; |
- const unsigned short INVERSE_DISTANCE = 1; |
- const unsigned short EXPONENTIAL_DISTANCE = 2; |
- |
// Default model for stereo is HRTF |
- [Custom=Setter] attribute DOMString panningModel; |
+ attribute PanningModelType panningModel; |
// Uses a 3D cartesian coordinate system |
void setPosition(float x, float y, float z); |
@@ -45,7 +46,7 @@ |
void setVelocity(float x, float y, float z); |
// Distance model |
- [Custom=Setter] attribute DOMString distanceModel; |
+ attribute DistanceModelType distanceModel; |
attribute double refDistance; |
attribute double maxDistance; |