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

Side by Side Diff: Source/modules/webaudio/PannerNode.idl

Issue 652073003: Change the default panning mode from HRTF to equal-power (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git/+/master
Patch Set: Reverting unnecessary changes Created 6 years, 2 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
« no previous file with comments | « Source/modules/webaudio/PannerNode.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 19 matching lines...) Expand all
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 38 Conditional=WEB_AUDIO
39 ] interface PannerNode : AudioNode { 39 ] interface PannerNode : AudioNode {
40 // Default model for stereo is HRTF 40 // Default model for stereo is equalpower.
41 attribute PanningModelType panningModel; 41 attribute PanningModelType panningModel;
42 42
43 // Uses a 3D cartesian coordinate system 43 // Uses a 3D cartesian coordinate system
44 void setPosition(float x, float y, float z); 44 void setPosition(float x, float y, float z);
45 void setOrientation(float x, float y, float z); 45 void setOrientation(float x, float y, float z);
46 void setVelocity(float x, float y, float z); 46 void setVelocity(float x, float y, float z);
47 47
48 // Distance model 48 // Distance model
49 attribute DistanceModelType distanceModel; 49 attribute DistanceModelType distanceModel;
50 50
51 attribute double refDistance; 51 attribute double refDistance;
52 attribute double maxDistance; 52 attribute double maxDistance;
53 attribute double rolloffFactor; 53 attribute double rolloffFactor;
54 54
55 // Directional sound cone 55 // Directional sound cone
56 attribute double coneInnerAngle; 56 attribute double coneInnerAngle;
57 attribute double coneOuterAngle; 57 attribute double coneOuterAngle;
58 attribute double coneOuterGain; 58 attribute double coneOuterGain;
59 }; 59 };
OLDNEW
« no previous file with comments | « Source/modules/webaudio/PannerNode.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698