| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 "exponential" | 33 "exponential" |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 [ | 36 [ |
| 37 NoInterfaceObject, | 37 NoInterfaceObject, |
| 38 ] interface PannerNode : AudioNode { | 38 ] interface PannerNode : AudioNode { |
| 39 // Default model for stereo is equalpower. | 39 // Default model for stereo is equalpower. |
| 40 attribute PanningModelType panningModel; | 40 attribute PanningModelType panningModel; |
| 41 | 41 |
| 42 // Uses a 3D cartesian coordinate system | 42 // Uses a 3D cartesian coordinate system |
| 43 void setPosition(float x, float y, float z); | 43 [MeasureAs=PannerNodeSetPosition] void setPosition(float x, float y, float z
); |
| 44 void setOrientation(float x, float y, float z); | 44 [MeasureAs=PannerNodeSetOrientation] void setOrientation(float x, float y, f
loat z); |
| 45 [DeprecateAs=PannerNodeSetVelocity] void setVelocity(float x, float y, float
z); | 45 [DeprecateAs=PannerNodeSetVelocity] void setVelocity(float x, float y, float
z); |
| 46 | 46 |
| 47 // Uses a 3D cartesian coordinate system |
| 48 readonly attribute AudioParam positionX; |
| 49 readonly attribute AudioParam positionY; |
| 50 readonly attribute AudioParam positionZ; |
| 51 |
| 52 readonly attribute AudioParam orientationX; |
| 53 readonly attribute AudioParam orientationY; |
| 54 readonly attribute AudioParam orientationZ; |
| 55 |
| 47 // Distance model | 56 // Distance model |
| 48 attribute DistanceModelType distanceModel; | 57 attribute DistanceModelType distanceModel; |
| 49 | 58 |
| 50 attribute double refDistance; | 59 attribute double refDistance; |
| 51 attribute double maxDistance; | 60 attribute double maxDistance; |
| 52 attribute double rolloffFactor; | 61 attribute double rolloffFactor; |
| 53 | 62 |
| 54 // Directional sound cone | 63 // Directional sound cone |
| 55 attribute double coneInnerAngle; | 64 attribute double coneInnerAngle; |
| 56 attribute double coneOuterAngle; | 65 attribute double coneOuterAngle; |
| 57 attribute double coneOuterGain; | 66 attribute double coneOuterGain; |
| 58 }; | 67 }; |
| OLD | NEW |