AudioContext.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>AudioContext - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <h1 translate="no">AudioContext</h1>
  13. <section>
  14. <header>
  15. <div class="class-description"><p>Manages the global audio context in the engine.</p></div>
  16. </header>
  17. <article>
  18. <div class="container-overview">
  19. <div class="method">
  20. </div>
  21. </div>
  22. <h2 class="subsection-title">Static Methods</h2>
  23. <h3 class="name name-method" id=".getContext" translate="no">.<a href="#.getContext">getContext</a><span class="signature">()</span><span class="type-signature"> : <a href="AudioContext.html">AudioContext</a></span> </h3>
  24. <div class="method">
  25. <div class="description">
  26. <p>Returns the global native audio context.</p>
  27. </div>
  28. <dl class="details">
  29. <dt class="tag-returns"><strong>Returns:</strong> The native audio context.</dt>
  30. </dl>
  31. </div>
  32. <h3 class="name name-method" id=".setContext" translate="no">.<a href="#.setContext">setContext</a><span class="signature">( value : <span class="param-type">AudioContext</span> )</span> </h3>
  33. <div class="method">
  34. <div class="description">
  35. <p>Allows to set the global native audio context from outside.</p>
  36. </div>
  37. <table class="params">
  38. <tbody>
  39. <tr>
  40. <td class="name"><code>value</code></td>
  41. <td class="description last"><p>The native context to set.</p></td>
  42. </tr>
  43. </tbody>
  44. </table>
  45. </div>
  46. <h2 class="subsection-title">Source</h2>
  47. <p>
  48. <a href="https://github.com/mrdoob/three.js/blob/master/src/audio/AudioContext.js" target="_blank" rel="noopener" translate="no">src/audio/AudioContext.js</a>
  49. </p>
  50. </article>
  51. </section>
  52. <script src="../scripts/linenumber.js"></script>
  53. <script src="../scripts/page.js"></script>
  54. </body>
  55. </html>
粤ICP备19079148号