AudioContext.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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"><a href="AudioContext.html">AudioContext</a></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">
  41. <strong>value</strong>
  42. </td>
  43. <td class="description last">
  44. <p>The native context to set.</p>
  45. </td>
  46. </tr>
  47. </tbody>
  48. </table>
  49. </div>
  50. <h2 class="subsection-title">Source</h2>
  51. <p>
  52. <a href="https://github.com/mrdoob/three.js/blob/master/src/audio/AudioContext.js" translate="no" target="_blank" rel="noopener">src/audio/AudioContext.js</a>
  53. </p>
  54. </article>
  55. </section>
  56. <script src="../scripts/linenumber.js"></script>
  57. <script src="../scripts/page.js"></script>
  58. </body>
  59. </html>
粤ICP备19079148号