| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // See https://webaudio.github.io/web-audio-api/#panneroptions | 5 // See https://webaudio.github.io/web-audio-api/#panneroptions |
| 6 dictionary PannerOptions : AudioNodeOptions { | 6 dictionary PannerOptions : AudioNodeOptions { |
| 7 PanningModelType panningModel; | 7 PanningModelType panningModel = "equalpower"; |
| 8 DistanceModelType distanceModel; | 8 DistanceModelType distanceModel = "inverse"; |
| 9 | 9 |
| 10 float positionX; | 10 float positionX = 0; |
| 11 float positionY; | 11 float positionY = 0; |
| 12 float positionZ; | 12 float positionZ = 0; |
| 13 float orientationX; | 13 float orientationX = 1; |
| 14 float orientationY; | 14 float orientationY = 0; |
| 15 float orientationZ; | 15 float orientationZ = 0; |
| 16 | 16 |
| 17 double refDistance; | 17 double refDistance = 1; |
| 18 double maxDistance; | 18 double maxDistance= 10000; |
| 19 double rolloffFactor; | 19 double rolloffFactor = 1; |
| 20 double coneInnerAngle; | 20 double coneInnerAngle = 360; |
| 21 double coneOuterAngle; | 21 double coneOuterAngle = 360; |
| 22 double coneOuterGain; | 22 double coneOuterGain = 0; |
| 23 }; | 23 }; |
| OLD | NEW |