forked from serjIII/threejsSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AudioContext.html
41 lines (33 loc) · 1.14 KB
/
AudioContext.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
<h1>[name]</h1>
<p class="desc">
This contains methods for setting up an
[link:https://developer.mozilla.org/en-US/docs/Web/API/AudioContext AudioContext].<br /><br />
Used internally by the [page:AudioListener AudioListener] and
[page:AudioLoader AudioLoader] classes.<br /><br />
This uses the
[link:https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API Web Audio API].
</p>
<h2>Methods</h2>
<h3>[method:AudioContext getContext]()</h3>
<p>
Return the value of the variable `context` in the outer scope, if defined,
otherwise set it to a new
[link:https://developer.mozilla.org/en-US/docs/Web/API/AudioContext AudioContext].
</p>
<h3>[method:AudioContext setContext]( [param:AudioContext value] )</h3>
<p>Set the variable `context` in the outer scope to `value`.</p>
<h2>Source</h2>
<p>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</p>
</body>
</html>