1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <!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>
|