-
Notifications
You must be signed in to change notification settings - Fork 0
/
AudioListener.json
111 lines (111 loc) · 5.12 KB
/
AudioListener.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"name": "AudioListener",
"description": "",
"members": [
{
"name": "AudioListener.positionX",
"link": "/en-US/docs/Web/API/AudioListener/positionX",
"description": "Represents the horizontal position of the listener in a right-hand cartesian coordinate sytem. The default is 0."
},
{
"name": "AudioListener.positionY",
"link": "/en-US/docs/Web/API/AudioListener/positionY",
"description": "Represents the vertical position of the listener in a right-hand cartesian coordinate sytem. The default is 0."
},
{
"name": "AudioListener.positionZ",
"link": "/en-US/docs/Web/API/AudioListener/positionZ",
"description": "Represents the longitudinal (back and forth) position of the listener in a right-hand cartesian coordinate sytem. The default is 0."
},
{
"name": "AudioListener.forwardX",
"link": "/en-US/docs/Web/API/AudioListener/forwardX",
"description": "Represents the horizontal position of the listener\u0027s forward direction in the same cartesian coordinate sytem as the position (positionX, positionY, and positionZ) values. The forward and up values are linearly independent of each other. The default is 0."
},
{
"name": "AudioListener.forwardY",
"link": "/en-US/docs/Web/API/AudioListener/forwardY",
"description": "Represents the vertical position of the listener\u0027s forward direction in the same cartesian coordinate sytem as the position (positionX, positionY, and positionZ) values. The forward and up values are linearly independent of each other. The default is 0."
},
{
"name": "AudioListener.forwardZ",
"link": "/en-US/docs/Web/API/AudioListener/forwardZ",
"description": "Represents the longitudinal (back and forth) position of the listener\u0027s forward direction in the same cartesian coordinate sytem as the position (positionX, positionY, and positionZ) values. The forward and up values are linearly independent of each other. The default is -1."
},
{
"name": "AudioListener.upX",
"link": "/en-US/docs/Web/API/AudioListener/upX",
"description": "Represents the horizontal position of the top of the listener\u0027s head in the same cartesian coordinate sytem as the position (positionX, positionY, and positionZ) values. The forward and up values are linearly independent of each other. The default is 0."
},
{
"name": "AudioListener.upY",
"link": "/en-US/docs/Web/API/AudioListener/upY",
"description": "Represents the vertical position of the top of the listener\u0027s head in the same cartesian coordinate sytem as the position (positionX, positionY, and positionZ) values. The forward and up values are linearly independent of each other. The default is 1."
},
{
"name": "AudioListener.upZ",
"link": "/en-US/docs/Web/API/AudioListener/upZ",
"description": "Represents the longitudinal (back and forth) position of the top of the listener\u0027s head in the same cartesian coordinate sytem as the position (positionX, positionY, and positionZ) values. The forward and up values are linearly independent of each other. The default is 0."
},
{
"name": "AudioListener.setOrientation()",
"link": "/en-US/docs/Web/API/AudioListener/setOrientation",
"description": "Sets the orientation of the listener.",
"parameters": [
{
"name": "x",
"description": "The x value of the front vector of the listener."
},
{
"name": "y",
"description": "The y value of the front vector of the listener."
},
{
"name": "z",
"description": "The z value of the front vector of the listener."
},
{
"name": "xUp",
"description": "The x value of the up vector of the listener."
},
{
"name": "yUp",
"description": "The y value of the up vector of the listener."
},
{
"name": "zUp",
"description": "The z value of the up vector of the listener."
}
]
},
{
"name": "AudioListener.setPosition()",
"link": "/en-US/docs/Web/API/AudioListener/setPosition",
"description": "Sets the position of the listener. See Deprecated features to learn why this method was removed.",
"parameters": [
{
"name": "x",
"description": "The x position of the listener in 3D space."
},
{
"name": "y",
"description": "The y position of the listener in 3D space."
},
{
"name": "z",
"description": "The z position of the listener in 3D space."
}
]
},
{
"name": "AudioListener.dopplerFactor",
"link": "/en-US/docs/Web/API/AudioListener/dopplerFactor",
"description": "A double value representing the amount of pitch shift to use when rendering a doppler effect."
},
{
"name": "AudioListener.speedOfSound",
"link": "/en-US/docs/Web/API/AudioListener/speedOfSound",
"description": "Is a double value representing the speed of sound, in meters per second."
}
]
}