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 16 matching lines...) Expand all Loading... |
27 "HRTF" | 27 "HRTF" |
28 }; | 28 }; |
29 | 29 |
30 enum DistanceModelType { | 30 enum DistanceModelType { |
31 "linear", | 31 "linear", |
32 "inverse", | 32 "inverse", |
33 "exponential" | 33 "exponential" |
34 }; | 34 }; |
35 | 35 |
36 [ | 36 [ |
37 NoInterfaceObject, | 37 Constructor(AudioContext context, optional PannerOptions options), |
| 38 RaisesException=Constructor, |
38 ] interface PannerNode : AudioNode { | 39 ] interface PannerNode : AudioNode { |
39 // Default model for stereo is equalpower. | 40 // Default model for stereo is equalpower. |
40 attribute PanningModelType panningModel; | 41 attribute PanningModelType panningModel; |
41 | 42 |
42 // Uses a 3D cartesian coordinate system | 43 // Uses a 3D cartesian coordinate system |
43 [MeasureAs=PannerNodeSetPosition] void setPosition(float x, float y, float z
); | 44 [MeasureAs=PannerNodeSetPosition] void setPosition(float x, float y, float z
); |
44 [MeasureAs=PannerNodeSetOrientation] void setOrientation(float x, float y, f
loat z); | 45 [MeasureAs=PannerNodeSetOrientation] void setOrientation(float x, float y, f
loat z); |
45 [DeprecateAs=PannerNodeSetVelocity] void setVelocity(float x, float y, float
z); | 46 [DeprecateAs=PannerNodeSetVelocity] void setVelocity(float x, float y, float
z); |
46 | 47 |
47 // Uses a 3D cartesian coordinate system | 48 // Uses a 3D cartesian coordinate system |
(...skipping 10 matching lines...) Expand all Loading... |
58 | 59 |
59 attribute double refDistance; | 60 attribute double refDistance; |
60 attribute double maxDistance; | 61 attribute double maxDistance; |
61 attribute double rolloffFactor; | 62 attribute double rolloffFactor; |
62 | 63 |
63 // Directional sound cone | 64 // Directional sound cone |
64 attribute double coneInnerAngle; | 65 attribute double coneInnerAngle; |
65 attribute double coneOuterAngle; | 66 attribute double coneOuterAngle; |
66 attribute double coneOuterGain; | 67 attribute double coneOuterGain; |
67 }; | 68 }; |
OLD | NEW |