Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(636)

Unified Diff: third_party/WebKit/Source/modules/webaudio/PannerOptions.idl

Issue 2760353002: Define default values for options dictionaries for WebAudio (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webaudio/PannerOptions.idl
diff --git a/third_party/WebKit/Source/modules/webaudio/PannerOptions.idl b/third_party/WebKit/Source/modules/webaudio/PannerOptions.idl
index f7f5b1a2f5e920751e65c4dfb7dff3bf8ebfcbb4..4cf7042f5177576e33ae443fa4b941f269e71cf4 100644
--- a/third_party/WebKit/Source/modules/webaudio/PannerOptions.idl
+++ b/third_party/WebKit/Source/modules/webaudio/PannerOptions.idl
@@ -4,20 +4,20 @@
// See https://webaudio.github.io/web-audio-api/#panneroptions
dictionary PannerOptions : AudioNodeOptions {
- PanningModelType panningModel;
- DistanceModelType distanceModel;
+ PanningModelType panningModel = "equalpower";
+ DistanceModelType distanceModel = "inverse";
- float positionX;
- float positionY;
- float positionZ;
- float orientationX;
- float orientationY;
- float orientationZ;
+ float positionX = 0;
+ float positionY = 0;
+ float positionZ = 0;
+ float orientationX = 1;
+ float orientationY = 0;
+ float orientationZ = 0;
- double refDistance;
- double maxDistance;
- double rolloffFactor;
- double coneInnerAngle;
- double coneOuterAngle;
- double coneOuterGain;
+ double refDistance = 1;
+ double maxDistance= 10000;
+ double rolloffFactor = 1;
+ double coneInnerAngle = 360;
+ double coneOuterAngle = 360;
+ double coneOuterGain = 0;
};

Powered by Google App Engine
This is Rietveld 408576698