Add some checks in PannerNode accessors

This commit is contained in:
Manish Goregaokar 2018-08-24 12:17:26 -07:00
parent 18960b6c94
commit 58176c4148
2 changed files with 19 additions and 7 deletions

View file

@ -46,11 +46,11 @@ interface PannerNode : AudioNode {
readonly attribute AudioParam orientationZ;
attribute DistanceModelType distanceModel;
attribute double refDistance;
attribute double maxDistance;
attribute double rolloffFactor;
[SetterThrows] attribute double maxDistance;
[SetterThrows] attribute double rolloffFactor;
attribute double coneInnerAngle;
attribute double coneOuterAngle;
attribute double coneOuterGain;
[SetterThrows] attribute double coneOuterGain;
void setPosition (float x, float y, float z);
void setOrientation (float x, float y, float z);
};