| 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 17 matching lines...) Expand all Loading... |
| 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 NoInterfaceObject, |
| 38 Conditional=WEB_AUDIO, | |
| 39 ] interface PannerNode : AudioNode { | 38 ] interface PannerNode : AudioNode { |
| 40 // Default model for stereo is equalpower. | 39 // Default model for stereo is equalpower. |
| 41 attribute PanningModelType panningModel; | 40 attribute PanningModelType panningModel; |
| 42 | 41 |
| 43 // Uses a 3D cartesian coordinate system | 42 // Uses a 3D cartesian coordinate system |
| 44 void setPosition(float x, float y, float z); | 43 void setPosition(float x, float y, float z); |
| 45 void setOrientation(float x, float y, float z); | 44 void setOrientation(float x, float y, float z); |
| 46 void setVelocity(float x, float y, float z); | 45 void setVelocity(float x, float y, float z); |
| 47 | 46 |
| 48 // Distance model | 47 // Distance model |
| 49 attribute DistanceModelType distanceModel; | 48 attribute DistanceModelType distanceModel; |
| 50 | 49 |
| 51 attribute double refDistance; | 50 attribute double refDistance; |
| 52 attribute double maxDistance; | 51 attribute double maxDistance; |
| 53 attribute double rolloffFactor; | 52 attribute double rolloffFactor; |
| 54 | 53 |
| 55 // Directional sound cone | 54 // Directional sound cone |
| 56 attribute double coneInnerAngle; | 55 attribute double coneInnerAngle; |
| 57 attribute double coneOuterAngle; | 56 attribute double coneOuterAngle; |
| 58 attribute double coneOuterGain; | 57 attribute double coneOuterGain; |
| 59 }; | 58 }; |
| OLD | NEW |