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

Side by Side 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 unified diff | Download patch
OLDNEW
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698