1
0

AudioContext.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. <h1>[name]</h1>
  11. <p class="desc">
  12. This contains methods for setting up an
  13. [link:https://developer.mozilla.org/en-US/docs/Web/API/AudioContext AudioContext].<br /><br />
  14. Used internally by the [page:AudioListener AudioListener] and
  15. [page:AudioLoader AudioLoader] classes.<br /><br />
  16. This uses the
  17. [link:https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API Web Audio API].
  18. </p>
  19. <h2>Methods</h2>
  20. <h3>[method:AudioContext getContext]()</h3>
  21. <p>
  22. Return the value of the variable `context` in the outer scope, if defined,
  23. otherwise set it to a new
  24. [link:https://developer.mozilla.org/en-US/docs/Web/API/AudioContext AudioContext].
  25. </p>
  26. <h3>[method:AudioContext setContext]( [param:AudioContext value] )</h3>
  27. <p>Set the variable `context` in the outer scope to `value`.</p>
  28. <h2>Source</h2>
  29. <p>
  30. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  31. </p>
  32. </body>
  33. </html>