react-audio-wavekit 0.1.5 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (462) hide show
  1. package/dist/index.d.ts +3 -3
  2. package/dist/node_modules/automation-events/build/es2019/classes/automation-event-list.cjs +137 -0
  3. package/dist/node_modules/automation-events/build/es2019/classes/automation-event-list.js +137 -0
  4. package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-and-hold-automation-event.cjs +6 -0
  5. package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-and-hold-automation-event.js +6 -0
  6. package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-scheduled-values-automation-event.cjs +6 -0
  7. package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-scheduled-values-automation-event.js +6 -0
  8. package/dist/node_modules/automation-events/build/es2019/functions/create-exponential-ramp-to-value-automation-event.cjs +6 -0
  9. package/dist/node_modules/automation-events/build/es2019/functions/create-exponential-ramp-to-value-automation-event.js +6 -0
  10. package/dist/node_modules/automation-events/build/es2019/functions/create-extended-exponential-ramp-to-value-automation-event.cjs +6 -0
  11. package/dist/node_modules/automation-events/build/es2019/functions/create-extended-exponential-ramp-to-value-automation-event.js +6 -0
  12. package/dist/node_modules/automation-events/build/es2019/functions/create-extended-linear-ramp-to-value-automation-event.cjs +6 -0
  13. package/dist/node_modules/automation-events/build/es2019/functions/create-extended-linear-ramp-to-value-automation-event.js +6 -0
  14. package/dist/node_modules/automation-events/build/es2019/functions/create-linear-ramp-to-value-automation-event.cjs +6 -0
  15. package/dist/node_modules/automation-events/build/es2019/functions/create-linear-ramp-to-value-automation-event.js +6 -0
  16. package/dist/node_modules/automation-events/build/es2019/functions/create-set-target-automation-event.cjs +6 -0
  17. package/dist/node_modules/automation-events/build/es2019/functions/create-set-target-automation-event.js +6 -0
  18. package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-automation-event.cjs +6 -0
  19. package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-automation-event.js +6 -0
  20. package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-curve-automation-event.cjs +6 -0
  21. package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-curve-automation-event.js +6 -0
  22. package/dist/node_modules/automation-events/build/es2019/functions/get-end-time-and-value-of-previous-automation-event.cjs +16 -0
  23. package/dist/node_modules/automation-events/build/es2019/functions/get-end-time-and-value-of-previous-automation-event.js +16 -0
  24. package/dist/node_modules/automation-events/build/es2019/functions/get-event-time.cjs +16 -0
  25. package/dist/node_modules/automation-events/build/es2019/functions/get-event-time.js +16 -0
  26. package/dist/node_modules/automation-events/build/es2019/functions/get-exponential-ramp-value-at-time.cjs +12 -0
  27. package/dist/node_modules/automation-events/build/es2019/functions/get-exponential-ramp-value-at-time.js +12 -0
  28. package/dist/node_modules/automation-events/build/es2019/functions/get-linear-ramp-value-at-time.cjs +6 -0
  29. package/dist/node_modules/automation-events/build/es2019/functions/get-linear-ramp-value-at-time.js +6 -0
  30. package/dist/node_modules/automation-events/build/es2019/functions/get-target-value-at-time.cjs +6 -0
  31. package/dist/node_modules/automation-events/build/es2019/functions/get-target-value-at-time.js +6 -0
  32. package/dist/node_modules/automation-events/build/es2019/functions/get-value-curve-value-at-time.cjs +8 -0
  33. package/dist/node_modules/automation-events/build/es2019/functions/get-value-curve-value-at-time.js +8 -0
  34. package/dist/node_modules/automation-events/build/es2019/functions/get-value-of-automation-event-at-index-at-time.cjs +11 -0
  35. package/dist/node_modules/automation-events/build/es2019/functions/get-value-of-automation-event-at-index-at-time.js +11 -0
  36. package/dist/node_modules/automation-events/build/es2019/functions/interpolate-value.cjs +11 -0
  37. package/dist/node_modules/automation-events/build/es2019/functions/interpolate-value.js +11 -0
  38. package/dist/node_modules/automation-events/build/es2019/guards/any-ramp-to-value-automation-event.cjs +8 -0
  39. package/dist/node_modules/automation-events/build/es2019/guards/any-ramp-to-value-automation-event.js +8 -0
  40. package/dist/node_modules/automation-events/build/es2019/guards/cancel-and-hold-automation-event.cjs +6 -0
  41. package/dist/node_modules/automation-events/build/es2019/guards/cancel-and-hold-automation-event.js +6 -0
  42. package/dist/node_modules/automation-events/build/es2019/guards/cancel-scheduled-values-automation-event.cjs +6 -0
  43. package/dist/node_modules/automation-events/build/es2019/guards/cancel-scheduled-values-automation-event.js +6 -0
  44. package/dist/node_modules/automation-events/build/es2019/guards/exponential-ramp-to-value-automation-event.cjs +6 -0
  45. package/dist/node_modules/automation-events/build/es2019/guards/exponential-ramp-to-value-automation-event.js +6 -0
  46. package/dist/node_modules/automation-events/build/es2019/guards/linear-ramp-to-value-automation-event.cjs +6 -0
  47. package/dist/node_modules/automation-events/build/es2019/guards/linear-ramp-to-value-automation-event.js +6 -0
  48. package/dist/node_modules/automation-events/build/es2019/guards/set-target-automation-event.cjs +6 -0
  49. package/dist/node_modules/automation-events/build/es2019/guards/set-target-automation-event.js +6 -0
  50. package/dist/node_modules/automation-events/build/es2019/guards/set-value-automation-event.cjs +6 -0
  51. package/dist/node_modules/automation-events/build/es2019/guards/set-value-automation-event.js +6 -0
  52. package/dist/node_modules/automation-events/build/es2019/guards/set-value-curve-automation-event.cjs +6 -0
  53. package/dist/node_modules/automation-events/build/es2019/guards/set-value-curve-automation-event.js +6 -0
  54. package/dist/node_modules/standardized-audio-context/build/es2019/constants.cjs +6 -0
  55. package/dist/node_modules/standardized-audio-context/build/es2019/constants.js +6 -0
  56. package/dist/node_modules/standardized-audio-context/build/es2019/factories/abort-error.cjs +4 -0
  57. package/dist/node_modules/standardized-audio-context/build/es2019/factories/abort-error.js +4 -0
  58. package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-active-input-connection-to-audio-node.cjs +8 -0
  59. package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-active-input-connection-to-audio-node.js +8 -0
  60. package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-node-connections.cjs +17 -0
  61. package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-node-connections.js +17 -0
  62. package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-param-connections.cjs +8 -0
  63. package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-param-connections.js +8 -0
  64. package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-worklet-module.cjs +115 -0
  65. package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-worklet-module.js +115 -0
  66. package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-connection-to-audio-node.cjs +60 -0
  67. package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-connection-to-audio-node.js +60 -0
  68. package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-passive-input-connection-to-audio-node.cjs +13 -0
  69. package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-passive-input-connection-to-audio-node.js +13 -0
  70. package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-silent-connection.cjs +20 -0
  71. package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-silent-connection.js +20 -0
  72. package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-constructor.cjs +73 -0
  73. package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-constructor.js +73 -0
  74. package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-renderer-factory.cjs +37 -0
  75. package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-renderer-factory.js +37 -0
  76. package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-constructor.cjs +37 -0
  77. package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-constructor.js +37 -0
  78. package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-constructor.cjs +103 -0
  79. package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-constructor.js +103 -0
  80. package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-renderer-factory.cjs +58 -0
  81. package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-renderer-factory.js +58 -0
  82. package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-constructor.cjs +40 -0
  83. package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-constructor.js +40 -0
  84. package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-renderer-factory.cjs +21 -0
  85. package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-renderer-factory.js +21 -0
  86. package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-listener-factory.cjs +220 -0
  87. package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-listener-factory.js +220 -0
  88. package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-node-constructor.cjs +274 -0
  89. package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-node-constructor.js +274 -0
  90. package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-factory.cjs +152 -0
  91. package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-factory.js +152 -0
  92. package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-renderer.cjs +29 -0
  93. package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-renderer.js +29 -0
  94. package/dist/node_modules/standardized-audio-context/build/es2019/factories/base-audio-context-constructor.cjs +83 -0
  95. package/dist/node_modules/standardized-audio-context/build/es2019/factories/base-audio-context-constructor.js +83 -0
  96. package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-constructor.cjs +63 -0
  97. package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-constructor.js +63 -0
  98. package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-renderer-factory.cjs +49 -0
  99. package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-renderer-factory.js +49 -0
  100. package/dist/node_modules/standardized-audio-context/build/es2019/factories/cache-test-result.cjs +31 -0
  101. package/dist/node_modules/standardized-audio-context/build/es2019/factories/cache-test-result.js +31 -0
  102. package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-constructor.cjs +20 -0
  103. package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-constructor.js +20 -0
  104. package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-renderer-factory.cjs +34 -0
  105. package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-renderer-factory.js +34 -0
  106. package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-constructor.cjs +20 -0
  107. package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-constructor.js +20 -0
  108. package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-renderer-factory.cjs +34 -0
  109. package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-renderer-factory.js +34 -0
  110. package/dist/node_modules/standardized-audio-context/build/es2019/factories/connect-audio-param.cjs +8 -0
  111. package/dist/node_modules/standardized-audio-context/build/es2019/factories/connect-audio-param.js +8 -0
  112. package/dist/node_modules/standardized-audio-context/build/es2019/factories/connected-native-audio-buffer-source-node-factory.cjs +26 -0
  113. package/dist/node_modules/standardized-audio-context/build/es2019/factories/connected-native-audio-buffer-source-node-factory.js +26 -0
  114. package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-constructor.cjs +63 -0
  115. package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-constructor.js +63 -0
  116. package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-renderer-factory.cjs +53 -0
  117. package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-renderer-factory.js +53 -0
  118. package/dist/node_modules/standardized-audio-context/build/es2019/factories/convert-number-to-unsigned-long.cjs +9 -0
  119. package/dist/node_modules/standardized-audio-context/build/es2019/factories/convert-number-to-unsigned-long.js +9 -0
  120. package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-constructor.cjs +51 -0
  121. package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-constructor.js +51 -0
  122. package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-renderer-factory.cjs +40 -0
  123. package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-renderer-factory.js +40 -0
  124. package/dist/node_modules/standardized-audio-context/build/es2019/factories/create-native-offline-audio-context.cjs +18 -0
  125. package/dist/node_modules/standardized-audio-context/build/es2019/factories/create-native-offline-audio-context.js +18 -0
  126. package/dist/node_modules/standardized-audio-context/build/es2019/factories/data-clone-error.cjs +4 -0
  127. package/dist/node_modules/standardized-audio-context/build/es2019/factories/data-clone-error.js +4 -0
  128. package/dist/node_modules/standardized-audio-context/build/es2019/factories/decode-audio-data.cjs +59 -0
  129. package/dist/node_modules/standardized-audio-context/build/es2019/factories/decode-audio-data.js +59 -0
  130. package/dist/node_modules/standardized-audio-context/build/es2019/factories/decrement-cycle-counter.cjs +32 -0
  131. package/dist/node_modules/standardized-audio-context/build/es2019/factories/decrement-cycle-counter.js +32 -0
  132. package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-constructor.cjs +27 -0
  133. package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-constructor.js +27 -0
  134. package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-renderer-factory.cjs +40 -0
  135. package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-renderer-factory.js +40 -0
  136. package/dist/node_modules/standardized-audio-context/build/es2019/factories/delete-active-input-connection-to-audio-node.cjs +8 -0
  137. package/dist/node_modules/standardized-audio-context/build/es2019/factories/delete-active-input-connection-to-audio-node.js +8 -0
  138. package/dist/node_modules/standardized-audio-context/build/es2019/factories/detect-cycles.cjs +21 -0
  139. package/dist/node_modules/standardized-audio-context/build/es2019/factories/detect-cycles.js +21 -0
  140. package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-constructor.cjs +80 -0
  141. package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-constructor.js +80 -0
  142. package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-renderer-factory.cjs +51 -0
  143. package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-renderer-factory.js +51 -0
  144. package/dist/node_modules/standardized-audio-context/build/es2019/factories/encoding-error.cjs +4 -0
  145. package/dist/node_modules/standardized-audio-context/build/es2019/factories/encoding-error.js +4 -0
  146. package/dist/node_modules/standardized-audio-context/build/es2019/factories/evaluate-source.cjs +45 -0
  147. package/dist/node_modules/standardized-audio-context/build/es2019/factories/evaluate-source.js +45 -0
  148. package/dist/node_modules/standardized-audio-context/build/es2019/factories/event-target-constructor.cjs +30 -0
  149. package/dist/node_modules/standardized-audio-context/build/es2019/factories/event-target-constructor.js +30 -0
  150. package/dist/node_modules/standardized-audio-context/build/es2019/factories/expose-current-frame-and-current-time.cjs +29 -0
  151. package/dist/node_modules/standardized-audio-context/build/es2019/factories/expose-current-frame-and-current-time.js +29 -0
  152. package/dist/node_modules/standardized-audio-context/build/es2019/factories/fetch-source.cjs +15 -0
  153. package/dist/node_modules/standardized-audio-context/build/es2019/factories/fetch-source.js +15 -0
  154. package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-constructor.cjs +26 -0
  155. package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-constructor.js +26 -0
  156. package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-renderer-factory.cjs +39 -0
  157. package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-renderer-factory.js +39 -0
  158. package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-renderer.cjs +12 -0
  159. package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-renderer.js +12 -0
  160. package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-tail-time.cjs +9 -0
  161. package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-tail-time.js +9 -0
  162. package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-param-renderer.cjs +12 -0
  163. package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-param-renderer.js +12 -0
  164. package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-native-context.cjs +13 -0
  165. package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-native-context.js +13 -0
  166. package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-or-create-backup-offline-audio-context.cjs +17 -0
  167. package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-or-create-backup-offline-audio-context.js +17 -0
  168. package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-unrendered-audio-worklet-nodes.cjs +12 -0
  169. package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-unrendered-audio-worklet-nodes.js +12 -0
  170. package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-constructor.cjs +27 -0
  171. package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-constructor.js +27 -0
  172. package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-renderer-factory.cjs +93 -0
  173. package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-renderer-factory.js +93 -0
  174. package/dist/node_modules/standardized-audio-context/build/es2019/factories/increment-cycle-counter-factory.cjs +29 -0
  175. package/dist/node_modules/standardized-audio-context/build/es2019/factories/increment-cycle-counter-factory.js +29 -0
  176. package/dist/node_modules/standardized-audio-context/build/es2019/factories/index-size-error.cjs +4 -0
  177. package/dist/node_modules/standardized-audio-context/build/es2019/factories/index-size-error.js +4 -0
  178. package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-access-error.cjs +4 -0
  179. package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-access-error.js +4 -0
  180. package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-state-error.cjs +4 -0
  181. package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-state-error.js +4 -0
  182. package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-context.cjs +8 -0
  183. package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-context.js +8 -0
  184. package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-node.cjs +8 -0
  185. package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-node.js +8 -0
  186. package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-param.cjs +8 -0
  187. package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-param.js +8 -0
  188. package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-context.cjs +8 -0
  189. package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-context.js +8 -0
  190. package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-offline-audio-context.cjs +8 -0
  191. package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-offline-audio-context.js +8 -0
  192. package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-secure-context.cjs +4 -0
  193. package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-secure-context.js +4 -0
  194. package/dist/node_modules/standardized-audio-context/build/es2019/factories/minimal-base-audio-context-constructor.cjs +43 -0
  195. package/dist/node_modules/standardized-audio-context/build/es2019/factories/minimal-base-audio-context-constructor.js +43 -0
  196. package/dist/node_modules/standardized-audio-context/build/es2019/factories/monitor-connections.cjs +59 -0
  197. package/dist/node_modules/standardized-audio-context/build/es2019/factories/monitor-connections.js +59 -0
  198. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-analyser-node-factory.cjs +24 -0
  199. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-analyser-node-factory.js +24 -0
  200. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-constructor.cjs +12 -0
  201. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-constructor.js +12 -0
  202. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-source-node-factory.cjs +40 -0
  203. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-source-node-factory.js +40 -0
  204. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-context-constructor.cjs +12 -0
  205. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-context-constructor.js +12 -0
  206. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-destination-node.cjs +51 -0
  207. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-destination-node.js +51 -0
  208. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-worklet-node-constructor.cjs +9 -0
  209. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-worklet-node-constructor.js +9 -0
  210. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-biquad-filter-node.cjs +16 -0
  211. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-biquad-filter-node.js +16 -0
  212. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-merger-node-factory.cjs +14 -0
  213. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-merger-node-factory.js +14 -0
  214. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-splitter-node.cjs +11 -0
  215. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-splitter-node.js +11 -0
  216. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-factory.cjs +25 -0
  217. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-factory.js +25 -0
  218. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-faker-factory.cjs +88 -0
  219. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-faker-factory.js +88 -0
  220. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-convolver-node-factory.cjs +34 -0
  221. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-convolver-node-factory.js +34 -0
  222. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-delay-node.cjs +11 -0
  223. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-delay-node.js +11 -0
  224. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-dynamics-compressor-node-factory.cjs +23 -0
  225. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-dynamics-compressor-node-factory.js +23 -0
  226. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-gain-node.cjs +11 -0
  227. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-gain-node.js +11 -0
  228. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-factory.cjs +14 -0
  229. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-factory.js +14 -0
  230. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-faker-factory.cjs +139 -0
  231. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-faker-factory.js +139 -0
  232. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-offline-audio-context-constructor.cjs +12 -0
  233. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-offline-audio-context-constructor.js +12 -0
  234. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-oscillator-node-factory.cjs +32 -0
  235. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-oscillator-node-factory.js +32 -0
  236. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-factory.cjs +30 -0
  237. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-factory.js +30 -0
  238. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-faker-factory.cjs +277 -0
  239. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-faker-factory.js +277 -0
  240. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-periodic-wave-factory.cjs +14 -0
  241. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-periodic-wave-factory.js +14 -0
  242. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-script-processor-node.cjs +6 -0
  243. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-script-processor-node.js +6 -0
  244. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-factory.cjs +28 -0
  245. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-factory.js +28 -0
  246. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-faker-factory.cjs +244 -0
  247. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-faker-factory.js +244 -0
  248. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-factory.cjs +48 -0
  249. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-factory.js +48 -0
  250. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-faker-factory.cjs +153 -0
  251. package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-faker-factory.js +153 -0
  252. package/dist/node_modules/standardized-audio-context/build/es2019/factories/not-supported-error.cjs +4 -0
  253. package/dist/node_modules/standardized-audio-context/build/es2019/factories/not-supported-error.js +4 -0
  254. package/dist/node_modules/standardized-audio-context/build/es2019/factories/offline-audio-context-constructor.cjs +71 -0
  255. package/dist/node_modules/standardized-audio-context/build/es2019/factories/offline-audio-context-constructor.js +71 -0
  256. package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-constructor.cjs +90 -0
  257. package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-constructor.js +90 -0
  258. package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-renderer-factory.cjs +62 -0
  259. package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-renderer-factory.js +62 -0
  260. package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-constructor.cjs +109 -0
  261. package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-constructor.js +109 -0
  262. package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-renderer-factory.cjs +166 -0
  263. package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-renderer-factory.js +166 -0
  264. package/dist/node_modules/standardized-audio-context/build/es2019/factories/periodic-wave-constructor.cjs +20 -0
  265. package/dist/node_modules/standardized-audio-context/build/es2019/factories/periodic-wave-constructor.js +20 -0
  266. package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-automation.cjs +10 -0
  267. package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-automation.js +10 -0
  268. package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-node.cjs +16 -0
  269. package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-node.js +16 -0
  270. package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-param.cjs +15 -0
  271. package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-param.js +15 -0
  272. package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-native-offline-audio-context.cjs +36 -0
  273. package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-native-offline-audio-context.js +36 -0
  274. package/dist/node_modules/standardized-audio-context/build/es2019/factories/set-audio-node-tail-time.cjs +6 -0
  275. package/dist/node_modules/standardized-audio-context/build/es2019/factories/set-audio-node-tail-time.js +6 -0
  276. package/dist/node_modules/standardized-audio-context/build/es2019/factories/start-rendering.cjs +16 -0
  277. package/dist/node_modules/standardized-audio-context/build/es2019/factories/start-rendering.js +16 -0
  278. package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-constructor.cjs +29 -0
  279. package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-constructor.js +29 -0
  280. package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-renderer-factory.cjs +44 -0
  281. package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-renderer-factory.js +44 -0
  282. package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-buffer-constructor-support.cjs +16 -0
  283. package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-buffer-constructor-support.js +16 -0
  284. package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-worklet-processor-post-message-support.cjs +35 -0
  285. package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-worklet-processor-post-message-support.js +35 -0
  286. package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-offline-audio-context-current-time-support.cjs +24 -0
  287. package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-offline-audio-context-current-time-support.js +24 -0
  288. package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-constructor.cjs +49 -0
  289. package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-constructor.js +49 -0
  290. package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-renderer-factory.cjs +40 -0
  291. package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-renderer-factory.js +40 -0
  292. package/dist/node_modules/standardized-audio-context/build/es2019/factories/window.cjs +4 -0
  293. package/dist/node_modules/standardized-audio-context/build/es2019/factories/window.js +4 -0
  294. package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods-out-of-bounds.cjs +25 -0
  295. package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods-out-of-bounds.js +25 -0
  296. package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods.cjs +33 -0
  297. package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods.js +33 -0
  298. package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-source-node-stop-method-nullified-buffer.cjs +17 -0
  299. package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-source-node-stop-method-nullified-buffer.js +17 -0
  300. package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-channel-merger-node.cjs +30 -0
  301. package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-channel-merger-node.js +30 -0
  302. package/dist/node_modules/standardized-audio-context/build/es2019/globals.cjs +20 -0
  303. package/dist/node_modules/standardized-audio-context/build/es2019/globals.js +20 -0
  304. package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-buffer-source-node.cjs +6 -0
  305. package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-buffer-source-node.js +6 -0
  306. package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node-output-connection.cjs +7 -0
  307. package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node-output-connection.js +7 -0
  308. package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node.cjs +6 -0
  309. package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node.js +6 -0
  310. package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-worklet-node.cjs +6 -0
  311. package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-worklet-node.js +6 -0
  312. package/dist/node_modules/standardized-audio-context/build/es2019/guards/biquad-filter-node.cjs +6 -0
  313. package/dist/node_modules/standardized-audio-context/build/es2019/guards/biquad-filter-node.js +6 -0
  314. package/dist/node_modules/standardized-audio-context/build/es2019/guards/constant-source-node.cjs +6 -0
  315. package/dist/node_modules/standardized-audio-context/build/es2019/guards/constant-source-node.js +6 -0
  316. package/dist/node_modules/standardized-audio-context/build/es2019/guards/delay-node.cjs +6 -0
  317. package/dist/node_modules/standardized-audio-context/build/es2019/guards/delay-node.js +6 -0
  318. package/dist/node_modules/standardized-audio-context/build/es2019/guards/gain-node.cjs +6 -0
  319. package/dist/node_modules/standardized-audio-context/build/es2019/guards/gain-node.js +6 -0
  320. package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node-faker.cjs +6 -0
  321. package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node-faker.js +6 -0
  322. package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node.cjs +6 -0
  323. package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node.js +6 -0
  324. package/dist/node_modules/standardized-audio-context/build/es2019/guards/oscillator-node.cjs +6 -0
  325. package/dist/node_modules/standardized-audio-context/build/es2019/guards/oscillator-node.js +6 -0
  326. package/dist/node_modules/standardized-audio-context/build/es2019/guards/stereo-panner-node.cjs +6 -0
  327. package/dist/node_modules/standardized-audio-context/build/es2019/guards/stereo-panner-node.js +6 -0
  328. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-active-input-connection-to-audio-param.cjs +7 -0
  329. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-active-input-connection-to-audio-param.js +7 -0
  330. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-passive-input-connection-to-audio-param.cjs +12 -0
  331. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-passive-input-connection-to-audio-param.js +12 -0
  332. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-audio-param-value.cjs +9 -0
  333. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-audio-param-value.js +9 -0
  334. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-option.cjs +9 -0
  335. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-option.js +9 -0
  336. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-options.cjs +9 -0
  337. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-options.js +9 -0
  338. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/compute-buffer-size.cjs +9 -0
  339. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/compute-buffer-size.js +9 -0
  340. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/connect-native-audio-node-to-native-audio-node.cjs +13 -0
  341. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/connect-native-audio-node-to-native-audio-node.js +13 -0
  342. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-active-audio-node-input-connections.cjs +35 -0
  343. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-active-audio-node-input-connections.js +35 -0
  344. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-audio-graph.cjs +7 -0
  345. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-audio-graph.js +7 -0
  346. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection-to-audio-param.cjs +7 -0
  347. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection-to-audio-param.js +7 -0
  348. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection.cjs +12 -0
  349. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection.js +12 -0
  350. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-event-listeners-of-audio-node.cjs +10 -0
  351. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-event-listeners-of-audio-node.js +10 -0
  352. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-node.cjs +13 -0
  353. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-node.js +13 -0
  354. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-param.cjs +13 -0
  355. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-param.js +13 -0
  356. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/detach-array-buffer.cjs +21 -0
  357. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/detach-array-buffer.js +21 -0
  358. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/disconnect-native-audio-node-from-native-audio-node.cjs +11 -0
  359. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/disconnect-native-audio-node-from-native-audio-node.js +11 -0
  360. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/filter-buffer.cjs +26 -0
  361. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/filter-buffer.js +26 -0
  362. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-node-connections.cjs +8 -0
  363. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-node-connections.js +8 -0
  364. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-param-connections.cjs +8 -0
  365. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-param-connections.js +8 -0
  366. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-event-listeners-of-audio-node.cjs +8 -0
  367. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-event-listeners-of-audio-node.js +8 -0
  368. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-first-sample.cjs +10 -0
  369. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-first-sample.js +10 -0
  370. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-node.cjs +8 -0
  371. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-node.js +8 -0
  372. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-param.cjs +8 -0
  373. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-param.js +8 -0
  374. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-value-for-key.cjs +10 -0
  375. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-value-for-key.js +10 -0
  376. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/insert-element-in-set.cjs +15 -0
  377. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/insert-element-in-set.js +15 -0
  378. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/intercept-connections.cjs +8 -0
  379. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/intercept-connections.js +8 -0
  380. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-active-audio-node.cjs +5 -0
  381. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-active-audio-node.js +5 -0
  382. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-constructible.cjs +17 -0
  383. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-constructible.js +17 -0
  384. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-dc-curve.cjs +13 -0
  385. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-dc-curve.js +13 -0
  386. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-owned-by-context.cjs +6 -0
  387. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-owned-by-context.js +6 -0
  388. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-part-of-a-cycle.cjs +7 -0
  389. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-part-of-a-cycle.js +7 -0
  390. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-passive-audio-node.cjs +7 -0
  391. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-passive-audio-node.js +7 -0
  392. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/overwrite-accessors.cjs +11 -0
  393. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/overwrite-accessors.js +11 -0
  394. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/pick-element-from-set.cjs +15 -0
  395. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/pick-element-from-set.js +15 -0
  396. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-channel-splitter-options.cjs +6 -0
  397. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-channel-splitter-options.js +6 -0
  398. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-periodic-wave-options.cjs +16 -0
  399. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-periodic-wave-options.js +16 -0
  400. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-active.cjs +12 -0
  401. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-active.js +12 -0
  402. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive-when-necessary.cjs +10 -0
  403. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive-when-necessary.js +10 -0
  404. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive.cjs +12 -0
  405. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive.js +12 -0
  406. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-value-at-time-until-possible.cjs +13 -0
  407. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-value-at-time-until-possible.js +13 -0
  408. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/split-import-statements.cjs +17 -0
  409. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/split-import-statements.js +17 -0
  410. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-analyser-node-get-float-time-domain-data-method-support.cjs +6 -0
  411. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-analyser-node-get-float-time-domain-data-method-support.js +6 -0
  412. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-copy-channel-methods-out-of-bounds-support.cjs +11 -0
  413. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-copy-channel-methods-out-of-bounds-support.js +11 -0
  414. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-consecutive-calls-support.cjs +13 -0
  415. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-consecutive-calls-support.js +13 -0
  416. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-offset-clamping-support.cjs +14 -0
  417. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-offset-clamping-support.js +14 -0
  418. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-stop-method-nullified-buffer-support.cjs +13 -0
  419. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-stop-method-nullified-buffer-support.js +13 -0
  420. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-node-disconnect-method-support.cjs +36 -0
  421. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-node-disconnect-method-support.js +36 -0
  422. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-start-method-negative-parameters-support.cjs +12 -0
  423. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-start-method-negative-parameters-support.js +12 -0
  424. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-consecutive-calls-support.cjs +16 -0
  425. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-consecutive-calls-support.js +16 -0
  426. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-negative-parameters-support.cjs +12 -0
  427. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-negative-parameters-support.js +12 -0
  428. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-promise-support.cjs +18 -0
  429. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-promise-support.js +18 -0
  430. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/visit-each-audio-node-once.cjs +13 -0
  431. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/visit-each-audio-node-once.js +13 -0
  432. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-analyser-node-get-float-time-domain-data-method.cjs +14 -0
  433. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-analyser-node-get-float-time-domain-data-method.js +14 -0
  434. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-get-channel-data-method.cjs +18 -0
  435. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-get-channel-data-method.js +18 -0
  436. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-consecutive-calls.cjs +16 -0
  437. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-consecutive-calls.js +16 -0
  438. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-offset-clamping.cjs +16 -0
  439. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-offset-clamping.js +16 -0
  440. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-node-disconnect-method.cjs +61 -0
  441. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-node-disconnect-method.js +61 -0
  442. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-start-method-negative-parameters.cjs +13 -0
  443. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-start-method-negative-parameters.js +13 -0
  444. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-consecutive-calls.cjs +31 -0
  445. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-consecutive-calls.js +31 -0
  446. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-negative-parameters.cjs +13 -0
  447. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-negative-parameters.js +13 -0
  448. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-channel-splitter-node.cjs +31 -0
  449. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-channel-splitter-node.js +31 -0
  450. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-event-listener.cjs +16 -0
  451. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-event-listener.js +16 -0
  452. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-iir-filter-node-get-frequency-response-method.cjs +14 -0
  453. package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-iir-filter-node-get-frequency-response-method.js +14 -0
  454. package/dist/node_modules/standardized-audio-context/build/es2019/module.cjs +298 -0
  455. package/dist/node_modules/standardized-audio-context/build/es2019/module.js +298 -0
  456. package/dist/recorder/live-streaming/recorder/recorder-compound.cjs +1 -1
  457. package/dist/recorder/live-streaming/recorder/recorder-compound.js +1 -1
  458. package/dist/waveform/util-audio-decoder.cjs +4 -6
  459. package/dist/waveform/util-audio-decoder.js +4 -6
  460. package/dist/waveform/waveform-renderer.cjs +3 -3
  461. package/dist/waveform/waveform-renderer.js +3 -3
  462. package/package.json +3 -2
@@ -0,0 +1,244 @@
1
+ import { interceptConnections } from "../helpers/intercept-connections.js";
2
+ const createNativeStereoPannerNodeFakerFactory = (createNativeChannelMergerNode, createNativeChannelSplitterNode, createNativeGainNode, createNativeWaveShaperNode, createNotSupportedError, monitorConnections) => {
3
+ const CURVE_SIZE = 16385;
4
+ const DC_CURVE = new Float32Array([1, 1]);
5
+ const HALF_PI = Math.PI / 2;
6
+ const SINGLE_CHANNEL_OPTIONS = { channelCount: 1, channelCountMode: "explicit", channelInterpretation: "discrete" };
7
+ const SINGLE_CHANNEL_WAVE_SHAPER_OPTIONS = { ...SINGLE_CHANNEL_OPTIONS, oversample: "none" };
8
+ const buildInternalGraphForMono = (nativeContext, inputGainNode, panGainNode, channelMergerNode) => {
9
+ const leftWaveShaperCurve = new Float32Array(CURVE_SIZE);
10
+ const rightWaveShaperCurve = new Float32Array(CURVE_SIZE);
11
+ for (let i = 0; i < CURVE_SIZE; i += 1) {
12
+ const x = i / (CURVE_SIZE - 1) * HALF_PI;
13
+ leftWaveShaperCurve[i] = Math.cos(x);
14
+ rightWaveShaperCurve[i] = Math.sin(x);
15
+ }
16
+ const leftGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
17
+ const leftWaveShaperNode = createNativeWaveShaperNode(nativeContext, { ...SINGLE_CHANNEL_WAVE_SHAPER_OPTIONS, curve: leftWaveShaperCurve });
18
+ const panWaveShaperNode = createNativeWaveShaperNode(nativeContext, { ...SINGLE_CHANNEL_WAVE_SHAPER_OPTIONS, curve: DC_CURVE });
19
+ const rightGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
20
+ const rightWaveShaperNode = createNativeWaveShaperNode(nativeContext, { ...SINGLE_CHANNEL_WAVE_SHAPER_OPTIONS, curve: rightWaveShaperCurve });
21
+ return {
22
+ connectGraph() {
23
+ inputGainNode.connect(leftGainNode);
24
+ inputGainNode.connect(panWaveShaperNode.inputs === void 0 ? panWaveShaperNode : panWaveShaperNode.inputs[0]);
25
+ inputGainNode.connect(rightGainNode);
26
+ panWaveShaperNode.connect(panGainNode);
27
+ panGainNode.connect(leftWaveShaperNode.inputs === void 0 ? leftWaveShaperNode : leftWaveShaperNode.inputs[0]);
28
+ panGainNode.connect(rightWaveShaperNode.inputs === void 0 ? rightWaveShaperNode : rightWaveShaperNode.inputs[0]);
29
+ leftWaveShaperNode.connect(leftGainNode.gain);
30
+ rightWaveShaperNode.connect(rightGainNode.gain);
31
+ leftGainNode.connect(channelMergerNode, 0, 0);
32
+ rightGainNode.connect(channelMergerNode, 0, 1);
33
+ },
34
+ disconnectGraph() {
35
+ inputGainNode.disconnect(leftGainNode);
36
+ inputGainNode.disconnect(panWaveShaperNode.inputs === void 0 ? panWaveShaperNode : panWaveShaperNode.inputs[0]);
37
+ inputGainNode.disconnect(rightGainNode);
38
+ panWaveShaperNode.disconnect(panGainNode);
39
+ panGainNode.disconnect(leftWaveShaperNode.inputs === void 0 ? leftWaveShaperNode : leftWaveShaperNode.inputs[0]);
40
+ panGainNode.disconnect(rightWaveShaperNode.inputs === void 0 ? rightWaveShaperNode : rightWaveShaperNode.inputs[0]);
41
+ leftWaveShaperNode.disconnect(leftGainNode.gain);
42
+ rightWaveShaperNode.disconnect(rightGainNode.gain);
43
+ leftGainNode.disconnect(channelMergerNode, 0, 0);
44
+ rightGainNode.disconnect(channelMergerNode, 0, 1);
45
+ }
46
+ };
47
+ };
48
+ const buildInternalGraphForStereo = (nativeContext, inputGainNode, panGainNode, channelMergerNode) => {
49
+ const leftInputForLeftOutputWaveShaperCurve = new Float32Array(CURVE_SIZE);
50
+ const leftInputForRightOutputWaveShaperCurve = new Float32Array(CURVE_SIZE);
51
+ const rightInputForLeftOutputWaveShaperCurve = new Float32Array(CURVE_SIZE);
52
+ const rightInputForRightOutputWaveShaperCurve = new Float32Array(CURVE_SIZE);
53
+ const centerIndex = Math.floor(CURVE_SIZE / 2);
54
+ for (let i = 0; i < CURVE_SIZE; i += 1) {
55
+ if (i > centerIndex) {
56
+ const x = (i - centerIndex) / (CURVE_SIZE - 1 - centerIndex) * HALF_PI;
57
+ leftInputForLeftOutputWaveShaperCurve[i] = Math.cos(x);
58
+ leftInputForRightOutputWaveShaperCurve[i] = Math.sin(x);
59
+ rightInputForLeftOutputWaveShaperCurve[i] = 0;
60
+ rightInputForRightOutputWaveShaperCurve[i] = 1;
61
+ } else {
62
+ const x = i / (CURVE_SIZE - 1 - centerIndex) * HALF_PI;
63
+ leftInputForLeftOutputWaveShaperCurve[i] = 1;
64
+ leftInputForRightOutputWaveShaperCurve[i] = 0;
65
+ rightInputForLeftOutputWaveShaperCurve[i] = Math.cos(x);
66
+ rightInputForRightOutputWaveShaperCurve[i] = Math.sin(x);
67
+ }
68
+ }
69
+ const channelSplitterNode = createNativeChannelSplitterNode(nativeContext, {
70
+ channelCount: 2,
71
+ channelCountMode: "explicit",
72
+ channelInterpretation: "discrete",
73
+ numberOfOutputs: 2
74
+ });
75
+ const leftInputForLeftOutputGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
76
+ const leftInputForLeftOutputWaveShaperNode = createNativeWaveShaperNode(nativeContext, {
77
+ ...SINGLE_CHANNEL_WAVE_SHAPER_OPTIONS,
78
+ curve: leftInputForLeftOutputWaveShaperCurve
79
+ });
80
+ const leftInputForRightOutputGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
81
+ const leftInputForRightOutputWaveShaperNode = createNativeWaveShaperNode(nativeContext, {
82
+ ...SINGLE_CHANNEL_WAVE_SHAPER_OPTIONS,
83
+ curve: leftInputForRightOutputWaveShaperCurve
84
+ });
85
+ const panWaveShaperNode = createNativeWaveShaperNode(nativeContext, { ...SINGLE_CHANNEL_WAVE_SHAPER_OPTIONS, curve: DC_CURVE });
86
+ const rightInputForLeftOutputGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
87
+ const rightInputForLeftOutputWaveShaperNode = createNativeWaveShaperNode(nativeContext, {
88
+ ...SINGLE_CHANNEL_WAVE_SHAPER_OPTIONS,
89
+ curve: rightInputForLeftOutputWaveShaperCurve
90
+ });
91
+ const rightInputForRightOutputGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
92
+ const rightInputForRightOutputWaveShaperNode = createNativeWaveShaperNode(nativeContext, {
93
+ ...SINGLE_CHANNEL_WAVE_SHAPER_OPTIONS,
94
+ curve: rightInputForRightOutputWaveShaperCurve
95
+ });
96
+ return {
97
+ connectGraph() {
98
+ inputGainNode.connect(channelSplitterNode);
99
+ inputGainNode.connect(panWaveShaperNode.inputs === void 0 ? panWaveShaperNode : panWaveShaperNode.inputs[0]);
100
+ channelSplitterNode.connect(leftInputForLeftOutputGainNode, 0);
101
+ channelSplitterNode.connect(leftInputForRightOutputGainNode, 0);
102
+ channelSplitterNode.connect(rightInputForLeftOutputGainNode, 1);
103
+ channelSplitterNode.connect(rightInputForRightOutputGainNode, 1);
104
+ panWaveShaperNode.connect(panGainNode);
105
+ panGainNode.connect(leftInputForLeftOutputWaveShaperNode.inputs === void 0 ? leftInputForLeftOutputWaveShaperNode : leftInputForLeftOutputWaveShaperNode.inputs[0]);
106
+ panGainNode.connect(leftInputForRightOutputWaveShaperNode.inputs === void 0 ? leftInputForRightOutputWaveShaperNode : leftInputForRightOutputWaveShaperNode.inputs[0]);
107
+ panGainNode.connect(rightInputForLeftOutputWaveShaperNode.inputs === void 0 ? rightInputForLeftOutputWaveShaperNode : rightInputForLeftOutputWaveShaperNode.inputs[0]);
108
+ panGainNode.connect(rightInputForRightOutputWaveShaperNode.inputs === void 0 ? rightInputForRightOutputWaveShaperNode : rightInputForRightOutputWaveShaperNode.inputs[0]);
109
+ leftInputForLeftOutputWaveShaperNode.connect(leftInputForLeftOutputGainNode.gain);
110
+ leftInputForRightOutputWaveShaperNode.connect(leftInputForRightOutputGainNode.gain);
111
+ rightInputForLeftOutputWaveShaperNode.connect(rightInputForLeftOutputGainNode.gain);
112
+ rightInputForRightOutputWaveShaperNode.connect(rightInputForRightOutputGainNode.gain);
113
+ leftInputForLeftOutputGainNode.connect(channelMergerNode, 0, 0);
114
+ rightInputForLeftOutputGainNode.connect(channelMergerNode, 0, 0);
115
+ leftInputForRightOutputGainNode.connect(channelMergerNode, 0, 1);
116
+ rightInputForRightOutputGainNode.connect(channelMergerNode, 0, 1);
117
+ },
118
+ disconnectGraph() {
119
+ inputGainNode.disconnect(channelSplitterNode);
120
+ inputGainNode.disconnect(panWaveShaperNode.inputs === void 0 ? panWaveShaperNode : panWaveShaperNode.inputs[0]);
121
+ channelSplitterNode.disconnect(leftInputForLeftOutputGainNode, 0);
122
+ channelSplitterNode.disconnect(leftInputForRightOutputGainNode, 0);
123
+ channelSplitterNode.disconnect(rightInputForLeftOutputGainNode, 1);
124
+ channelSplitterNode.disconnect(rightInputForRightOutputGainNode, 1);
125
+ panWaveShaperNode.disconnect(panGainNode);
126
+ panGainNode.disconnect(leftInputForLeftOutputWaveShaperNode.inputs === void 0 ? leftInputForLeftOutputWaveShaperNode : leftInputForLeftOutputWaveShaperNode.inputs[0]);
127
+ panGainNode.disconnect(leftInputForRightOutputWaveShaperNode.inputs === void 0 ? leftInputForRightOutputWaveShaperNode : leftInputForRightOutputWaveShaperNode.inputs[0]);
128
+ panGainNode.disconnect(rightInputForLeftOutputWaveShaperNode.inputs === void 0 ? rightInputForLeftOutputWaveShaperNode : rightInputForLeftOutputWaveShaperNode.inputs[0]);
129
+ panGainNode.disconnect(rightInputForRightOutputWaveShaperNode.inputs === void 0 ? rightInputForRightOutputWaveShaperNode : rightInputForRightOutputWaveShaperNode.inputs[0]);
130
+ leftInputForLeftOutputWaveShaperNode.disconnect(leftInputForLeftOutputGainNode.gain);
131
+ leftInputForRightOutputWaveShaperNode.disconnect(leftInputForRightOutputGainNode.gain);
132
+ rightInputForLeftOutputWaveShaperNode.disconnect(rightInputForLeftOutputGainNode.gain);
133
+ rightInputForRightOutputWaveShaperNode.disconnect(rightInputForRightOutputGainNode.gain);
134
+ leftInputForLeftOutputGainNode.disconnect(channelMergerNode, 0, 0);
135
+ rightInputForLeftOutputGainNode.disconnect(channelMergerNode, 0, 0);
136
+ leftInputForRightOutputGainNode.disconnect(channelMergerNode, 0, 1);
137
+ rightInputForRightOutputGainNode.disconnect(channelMergerNode, 0, 1);
138
+ }
139
+ };
140
+ };
141
+ const buildInternalGraph = (nativeContext, channelCount, inputGainNode, panGainNode, channelMergerNode) => {
142
+ if (channelCount === 1) {
143
+ return buildInternalGraphForMono(nativeContext, inputGainNode, panGainNode, channelMergerNode);
144
+ }
145
+ if (channelCount === 2) {
146
+ return buildInternalGraphForStereo(nativeContext, inputGainNode, panGainNode, channelMergerNode);
147
+ }
148
+ throw createNotSupportedError();
149
+ };
150
+ return (nativeContext, { channelCount, channelCountMode, pan, ...audioNodeOptions }) => {
151
+ if (channelCountMode === "max") {
152
+ throw createNotSupportedError();
153
+ }
154
+ const channelMergerNode = createNativeChannelMergerNode(nativeContext, {
155
+ ...audioNodeOptions,
156
+ channelCount: 1,
157
+ channelCountMode,
158
+ numberOfInputs: 2
159
+ });
160
+ const inputGainNode = createNativeGainNode(nativeContext, { ...audioNodeOptions, channelCount, channelCountMode, gain: 1 });
161
+ const panGainNode = createNativeGainNode(nativeContext, {
162
+ channelCount: 1,
163
+ channelCountMode: "explicit",
164
+ channelInterpretation: "discrete",
165
+ gain: pan
166
+ });
167
+ let { connectGraph, disconnectGraph } = buildInternalGraph(nativeContext, channelCount, inputGainNode, panGainNode, channelMergerNode);
168
+ Object.defineProperty(panGainNode.gain, "defaultValue", { get: () => 0 });
169
+ Object.defineProperty(panGainNode.gain, "maxValue", { get: () => 1 });
170
+ Object.defineProperty(panGainNode.gain, "minValue", { get: () => -1 });
171
+ const nativeStereoPannerNodeFakerFactory = {
172
+ get bufferSize() {
173
+ return void 0;
174
+ },
175
+ get channelCount() {
176
+ return inputGainNode.channelCount;
177
+ },
178
+ set channelCount(value) {
179
+ if (inputGainNode.channelCount !== value) {
180
+ if (isConnected) {
181
+ disconnectGraph();
182
+ }
183
+ ({ connectGraph, disconnectGraph } = buildInternalGraph(nativeContext, value, inputGainNode, panGainNode, channelMergerNode));
184
+ if (isConnected) {
185
+ connectGraph();
186
+ }
187
+ }
188
+ inputGainNode.channelCount = value;
189
+ },
190
+ get channelCountMode() {
191
+ return inputGainNode.channelCountMode;
192
+ },
193
+ set channelCountMode(value) {
194
+ if (value === "clamped-max" || value === "max") {
195
+ throw createNotSupportedError();
196
+ }
197
+ inputGainNode.channelCountMode = value;
198
+ },
199
+ get channelInterpretation() {
200
+ return inputGainNode.channelInterpretation;
201
+ },
202
+ set channelInterpretation(value) {
203
+ inputGainNode.channelInterpretation = value;
204
+ },
205
+ get context() {
206
+ return inputGainNode.context;
207
+ },
208
+ get inputs() {
209
+ return [inputGainNode];
210
+ },
211
+ get numberOfInputs() {
212
+ return inputGainNode.numberOfInputs;
213
+ },
214
+ get numberOfOutputs() {
215
+ return inputGainNode.numberOfOutputs;
216
+ },
217
+ get pan() {
218
+ return panGainNode.gain;
219
+ },
220
+ addEventListener(...args) {
221
+ return inputGainNode.addEventListener(args[0], args[1], args[2]);
222
+ },
223
+ dispatchEvent(...args) {
224
+ return inputGainNode.dispatchEvent(args[0]);
225
+ },
226
+ removeEventListener(...args) {
227
+ return inputGainNode.removeEventListener(args[0], args[1], args[2]);
228
+ }
229
+ };
230
+ let isConnected = false;
231
+ const whenConnected = () => {
232
+ connectGraph();
233
+ isConnected = true;
234
+ };
235
+ const whenDisconnected = () => {
236
+ disconnectGraph();
237
+ isConnected = false;
238
+ };
239
+ return monitorConnections(interceptConnections(nativeStereoPannerNodeFakerFactory, channelMergerNode), whenConnected, whenDisconnected);
240
+ };
241
+ };
242
+ export {
243
+ createNativeStereoPannerNodeFakerFactory
244
+ };
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const assignNativeAudioNodeOption = require("../helpers/assign-native-audio-node-option.cjs");
4
+ const assignNativeAudioNodeOptions = require("../helpers/assign-native-audio-node-options.cjs");
5
+ const createNativeWaveShaperNodeFactory = (createConnectedNativeAudioBufferSourceNode, createInvalidStateError, createNativeWaveShaperNodeFaker, isDCCurve, monitorConnections, nativeAudioContextConstructor, overwriteAccessors) => {
6
+ return (nativeContext, options) => {
7
+ const nativeWaveShaperNode = nativeContext.createWaveShaper();
8
+ if (nativeAudioContextConstructor !== null && nativeAudioContextConstructor.name === "webkitAudioContext" && nativeContext.createGain().gain.automationRate === void 0) {
9
+ return createNativeWaveShaperNodeFaker(nativeContext, options);
10
+ }
11
+ assignNativeAudioNodeOptions.assignNativeAudioNodeOptions(nativeWaveShaperNode, options);
12
+ const curve = options.curve === null || options.curve instanceof Float32Array ? options.curve : new Float32Array(options.curve);
13
+ if (curve !== null && curve.length < 2) {
14
+ throw createInvalidStateError();
15
+ }
16
+ assignNativeAudioNodeOption.assignNativeAudioNodeOption(nativeWaveShaperNode, { curve }, "curve");
17
+ assignNativeAudioNodeOption.assignNativeAudioNodeOption(nativeWaveShaperNode, options, "oversample");
18
+ let disconnectNativeAudioBufferSourceNode = null;
19
+ let isConnected = false;
20
+ overwriteAccessors(nativeWaveShaperNode, "curve", (get) => () => get.call(nativeWaveShaperNode), (set) => (value) => {
21
+ set.call(nativeWaveShaperNode, value);
22
+ if (isConnected) {
23
+ if (isDCCurve(value) && disconnectNativeAudioBufferSourceNode === null) {
24
+ disconnectNativeAudioBufferSourceNode = createConnectedNativeAudioBufferSourceNode(nativeContext, nativeWaveShaperNode);
25
+ } else if (!isDCCurve(value) && disconnectNativeAudioBufferSourceNode !== null) {
26
+ disconnectNativeAudioBufferSourceNode();
27
+ disconnectNativeAudioBufferSourceNode = null;
28
+ }
29
+ }
30
+ return value;
31
+ });
32
+ const whenConnected = () => {
33
+ isConnected = true;
34
+ if (isDCCurve(nativeWaveShaperNode.curve)) {
35
+ disconnectNativeAudioBufferSourceNode = createConnectedNativeAudioBufferSourceNode(nativeContext, nativeWaveShaperNode);
36
+ }
37
+ };
38
+ const whenDisconnected = () => {
39
+ isConnected = false;
40
+ if (disconnectNativeAudioBufferSourceNode !== null) {
41
+ disconnectNativeAudioBufferSourceNode();
42
+ disconnectNativeAudioBufferSourceNode = null;
43
+ }
44
+ };
45
+ return monitorConnections(nativeWaveShaperNode, whenConnected, whenDisconnected);
46
+ };
47
+ };
48
+ exports.createNativeWaveShaperNodeFactory = createNativeWaveShaperNodeFactory;
@@ -0,0 +1,48 @@
1
+ import { assignNativeAudioNodeOption } from "../helpers/assign-native-audio-node-option.js";
2
+ import { assignNativeAudioNodeOptions } from "../helpers/assign-native-audio-node-options.js";
3
+ const createNativeWaveShaperNodeFactory = (createConnectedNativeAudioBufferSourceNode, createInvalidStateError, createNativeWaveShaperNodeFaker, isDCCurve, monitorConnections, nativeAudioContextConstructor, overwriteAccessors) => {
4
+ return (nativeContext, options) => {
5
+ const nativeWaveShaperNode = nativeContext.createWaveShaper();
6
+ if (nativeAudioContextConstructor !== null && nativeAudioContextConstructor.name === "webkitAudioContext" && nativeContext.createGain().gain.automationRate === void 0) {
7
+ return createNativeWaveShaperNodeFaker(nativeContext, options);
8
+ }
9
+ assignNativeAudioNodeOptions(nativeWaveShaperNode, options);
10
+ const curve = options.curve === null || options.curve instanceof Float32Array ? options.curve : new Float32Array(options.curve);
11
+ if (curve !== null && curve.length < 2) {
12
+ throw createInvalidStateError();
13
+ }
14
+ assignNativeAudioNodeOption(nativeWaveShaperNode, { curve }, "curve");
15
+ assignNativeAudioNodeOption(nativeWaveShaperNode, options, "oversample");
16
+ let disconnectNativeAudioBufferSourceNode = null;
17
+ let isConnected = false;
18
+ overwriteAccessors(nativeWaveShaperNode, "curve", (get) => () => get.call(nativeWaveShaperNode), (set) => (value) => {
19
+ set.call(nativeWaveShaperNode, value);
20
+ if (isConnected) {
21
+ if (isDCCurve(value) && disconnectNativeAudioBufferSourceNode === null) {
22
+ disconnectNativeAudioBufferSourceNode = createConnectedNativeAudioBufferSourceNode(nativeContext, nativeWaveShaperNode);
23
+ } else if (!isDCCurve(value) && disconnectNativeAudioBufferSourceNode !== null) {
24
+ disconnectNativeAudioBufferSourceNode();
25
+ disconnectNativeAudioBufferSourceNode = null;
26
+ }
27
+ }
28
+ return value;
29
+ });
30
+ const whenConnected = () => {
31
+ isConnected = true;
32
+ if (isDCCurve(nativeWaveShaperNode.curve)) {
33
+ disconnectNativeAudioBufferSourceNode = createConnectedNativeAudioBufferSourceNode(nativeContext, nativeWaveShaperNode);
34
+ }
35
+ };
36
+ const whenDisconnected = () => {
37
+ isConnected = false;
38
+ if (disconnectNativeAudioBufferSourceNode !== null) {
39
+ disconnectNativeAudioBufferSourceNode();
40
+ disconnectNativeAudioBufferSourceNode = null;
41
+ }
42
+ };
43
+ return monitorConnections(nativeWaveShaperNode, whenConnected, whenDisconnected);
44
+ };
45
+ };
46
+ export {
47
+ createNativeWaveShaperNodeFactory
48
+ };
@@ -0,0 +1,153 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const assignNativeAudioNodeOptions = require("../helpers/assign-native-audio-node-options.cjs");
4
+ const interceptConnections = require("../helpers/intercept-connections.cjs");
5
+ const createNativeWaveShaperNodeFakerFactory = (createConnectedNativeAudioBufferSourceNode, createInvalidStateError, createNativeGainNode, isDCCurve, monitorConnections) => {
6
+ return (nativeContext, { curve, oversample, ...audioNodeOptions }) => {
7
+ const negativeWaveShaperNode = nativeContext.createWaveShaper();
8
+ const positiveWaveShaperNode = nativeContext.createWaveShaper();
9
+ assignNativeAudioNodeOptions.assignNativeAudioNodeOptions(negativeWaveShaperNode, audioNodeOptions);
10
+ assignNativeAudioNodeOptions.assignNativeAudioNodeOptions(positiveWaveShaperNode, audioNodeOptions);
11
+ const inputGainNode = createNativeGainNode(nativeContext, { ...audioNodeOptions, gain: 1 });
12
+ const invertGainNode = createNativeGainNode(nativeContext, { ...audioNodeOptions, gain: -1 });
13
+ const outputGainNode = createNativeGainNode(nativeContext, { ...audioNodeOptions, gain: 1 });
14
+ const revertGainNode = createNativeGainNode(nativeContext, { ...audioNodeOptions, gain: -1 });
15
+ let disconnectNativeAudioBufferSourceNode = null;
16
+ let isConnected = false;
17
+ let unmodifiedCurve = null;
18
+ const nativeWaveShaperNodeFaker = {
19
+ get bufferSize() {
20
+ return void 0;
21
+ },
22
+ get channelCount() {
23
+ return negativeWaveShaperNode.channelCount;
24
+ },
25
+ set channelCount(value) {
26
+ inputGainNode.channelCount = value;
27
+ invertGainNode.channelCount = value;
28
+ negativeWaveShaperNode.channelCount = value;
29
+ outputGainNode.channelCount = value;
30
+ positiveWaveShaperNode.channelCount = value;
31
+ revertGainNode.channelCount = value;
32
+ },
33
+ get channelCountMode() {
34
+ return negativeWaveShaperNode.channelCountMode;
35
+ },
36
+ set channelCountMode(value) {
37
+ inputGainNode.channelCountMode = value;
38
+ invertGainNode.channelCountMode = value;
39
+ negativeWaveShaperNode.channelCountMode = value;
40
+ outputGainNode.channelCountMode = value;
41
+ positiveWaveShaperNode.channelCountMode = value;
42
+ revertGainNode.channelCountMode = value;
43
+ },
44
+ get channelInterpretation() {
45
+ return negativeWaveShaperNode.channelInterpretation;
46
+ },
47
+ set channelInterpretation(value) {
48
+ inputGainNode.channelInterpretation = value;
49
+ invertGainNode.channelInterpretation = value;
50
+ negativeWaveShaperNode.channelInterpretation = value;
51
+ outputGainNode.channelInterpretation = value;
52
+ positiveWaveShaperNode.channelInterpretation = value;
53
+ revertGainNode.channelInterpretation = value;
54
+ },
55
+ get context() {
56
+ return negativeWaveShaperNode.context;
57
+ },
58
+ get curve() {
59
+ return unmodifiedCurve;
60
+ },
61
+ set curve(value) {
62
+ if (value !== null && value.length < 2) {
63
+ throw createInvalidStateError();
64
+ }
65
+ if (value === null) {
66
+ negativeWaveShaperNode.curve = value;
67
+ positiveWaveShaperNode.curve = value;
68
+ } else {
69
+ const curveLength = value.length;
70
+ const negativeCurve = new Float32Array(curveLength + 2 - curveLength % 2);
71
+ const positiveCurve = new Float32Array(curveLength + 2 - curveLength % 2);
72
+ negativeCurve[0] = value[0];
73
+ positiveCurve[0] = -value[curveLength - 1];
74
+ const length = Math.ceil((curveLength + 1) / 2);
75
+ const centerIndex = (curveLength + 1) / 2 - 1;
76
+ for (let i = 1; i < length; i += 1) {
77
+ const theoreticIndex = i / length * centerIndex;
78
+ const lowerIndex = Math.floor(theoreticIndex);
79
+ const upperIndex = Math.ceil(theoreticIndex);
80
+ negativeCurve[i] = lowerIndex === upperIndex ? value[lowerIndex] : (1 - (theoreticIndex - lowerIndex)) * value[lowerIndex] + (1 - (upperIndex - theoreticIndex)) * value[upperIndex];
81
+ positiveCurve[i] = lowerIndex === upperIndex ? -value[curveLength - 1 - lowerIndex] : -((1 - (theoreticIndex - lowerIndex)) * value[curveLength - 1 - lowerIndex]) - (1 - (upperIndex - theoreticIndex)) * value[curveLength - 1 - upperIndex];
82
+ }
83
+ negativeCurve[length] = curveLength % 2 === 1 ? value[length - 1] : (value[length - 2] + value[length - 1]) / 2;
84
+ negativeWaveShaperNode.curve = negativeCurve;
85
+ positiveWaveShaperNode.curve = positiveCurve;
86
+ }
87
+ unmodifiedCurve = value;
88
+ if (isConnected) {
89
+ if (isDCCurve(unmodifiedCurve) && disconnectNativeAudioBufferSourceNode === null) {
90
+ disconnectNativeAudioBufferSourceNode = createConnectedNativeAudioBufferSourceNode(nativeContext, inputGainNode);
91
+ } else if (disconnectNativeAudioBufferSourceNode !== null) {
92
+ disconnectNativeAudioBufferSourceNode();
93
+ disconnectNativeAudioBufferSourceNode = null;
94
+ }
95
+ }
96
+ },
97
+ get inputs() {
98
+ return [inputGainNode];
99
+ },
100
+ get numberOfInputs() {
101
+ return negativeWaveShaperNode.numberOfInputs;
102
+ },
103
+ get numberOfOutputs() {
104
+ return negativeWaveShaperNode.numberOfOutputs;
105
+ },
106
+ get oversample() {
107
+ return negativeWaveShaperNode.oversample;
108
+ },
109
+ set oversample(value) {
110
+ negativeWaveShaperNode.oversample = value;
111
+ positiveWaveShaperNode.oversample = value;
112
+ },
113
+ addEventListener(...args) {
114
+ return inputGainNode.addEventListener(args[0], args[1], args[2]);
115
+ },
116
+ dispatchEvent(...args) {
117
+ return inputGainNode.dispatchEvent(args[0]);
118
+ },
119
+ removeEventListener(...args) {
120
+ return inputGainNode.removeEventListener(args[0], args[1], args[2]);
121
+ }
122
+ };
123
+ if (curve !== null) {
124
+ nativeWaveShaperNodeFaker.curve = curve instanceof Float32Array ? curve : new Float32Array(curve);
125
+ }
126
+ if (oversample !== nativeWaveShaperNodeFaker.oversample) {
127
+ nativeWaveShaperNodeFaker.oversample = oversample;
128
+ }
129
+ const whenConnected = () => {
130
+ inputGainNode.connect(negativeWaveShaperNode).connect(outputGainNode);
131
+ inputGainNode.connect(invertGainNode).connect(positiveWaveShaperNode).connect(revertGainNode).connect(outputGainNode);
132
+ isConnected = true;
133
+ if (isDCCurve(unmodifiedCurve)) {
134
+ disconnectNativeAudioBufferSourceNode = createConnectedNativeAudioBufferSourceNode(nativeContext, inputGainNode);
135
+ }
136
+ };
137
+ const whenDisconnected = () => {
138
+ inputGainNode.disconnect(negativeWaveShaperNode);
139
+ negativeWaveShaperNode.disconnect(outputGainNode);
140
+ inputGainNode.disconnect(invertGainNode);
141
+ invertGainNode.disconnect(positiveWaveShaperNode);
142
+ positiveWaveShaperNode.disconnect(revertGainNode);
143
+ revertGainNode.disconnect(outputGainNode);
144
+ isConnected = false;
145
+ if (disconnectNativeAudioBufferSourceNode !== null) {
146
+ disconnectNativeAudioBufferSourceNode();
147
+ disconnectNativeAudioBufferSourceNode = null;
148
+ }
149
+ };
150
+ return monitorConnections(interceptConnections.interceptConnections(nativeWaveShaperNodeFaker, outputGainNode), whenConnected, whenDisconnected);
151
+ };
152
+ };
153
+ exports.createNativeWaveShaperNodeFakerFactory = createNativeWaveShaperNodeFakerFactory;
@@ -0,0 +1,153 @@
1
+ import { assignNativeAudioNodeOptions } from "../helpers/assign-native-audio-node-options.js";
2
+ import { interceptConnections } from "../helpers/intercept-connections.js";
3
+ const createNativeWaveShaperNodeFakerFactory = (createConnectedNativeAudioBufferSourceNode, createInvalidStateError, createNativeGainNode, isDCCurve, monitorConnections) => {
4
+ return (nativeContext, { curve, oversample, ...audioNodeOptions }) => {
5
+ const negativeWaveShaperNode = nativeContext.createWaveShaper();
6
+ const positiveWaveShaperNode = nativeContext.createWaveShaper();
7
+ assignNativeAudioNodeOptions(negativeWaveShaperNode, audioNodeOptions);
8
+ assignNativeAudioNodeOptions(positiveWaveShaperNode, audioNodeOptions);
9
+ const inputGainNode = createNativeGainNode(nativeContext, { ...audioNodeOptions, gain: 1 });
10
+ const invertGainNode = createNativeGainNode(nativeContext, { ...audioNodeOptions, gain: -1 });
11
+ const outputGainNode = createNativeGainNode(nativeContext, { ...audioNodeOptions, gain: 1 });
12
+ const revertGainNode = createNativeGainNode(nativeContext, { ...audioNodeOptions, gain: -1 });
13
+ let disconnectNativeAudioBufferSourceNode = null;
14
+ let isConnected = false;
15
+ let unmodifiedCurve = null;
16
+ const nativeWaveShaperNodeFaker = {
17
+ get bufferSize() {
18
+ return void 0;
19
+ },
20
+ get channelCount() {
21
+ return negativeWaveShaperNode.channelCount;
22
+ },
23
+ set channelCount(value) {
24
+ inputGainNode.channelCount = value;
25
+ invertGainNode.channelCount = value;
26
+ negativeWaveShaperNode.channelCount = value;
27
+ outputGainNode.channelCount = value;
28
+ positiveWaveShaperNode.channelCount = value;
29
+ revertGainNode.channelCount = value;
30
+ },
31
+ get channelCountMode() {
32
+ return negativeWaveShaperNode.channelCountMode;
33
+ },
34
+ set channelCountMode(value) {
35
+ inputGainNode.channelCountMode = value;
36
+ invertGainNode.channelCountMode = value;
37
+ negativeWaveShaperNode.channelCountMode = value;
38
+ outputGainNode.channelCountMode = value;
39
+ positiveWaveShaperNode.channelCountMode = value;
40
+ revertGainNode.channelCountMode = value;
41
+ },
42
+ get channelInterpretation() {
43
+ return negativeWaveShaperNode.channelInterpretation;
44
+ },
45
+ set channelInterpretation(value) {
46
+ inputGainNode.channelInterpretation = value;
47
+ invertGainNode.channelInterpretation = value;
48
+ negativeWaveShaperNode.channelInterpretation = value;
49
+ outputGainNode.channelInterpretation = value;
50
+ positiveWaveShaperNode.channelInterpretation = value;
51
+ revertGainNode.channelInterpretation = value;
52
+ },
53
+ get context() {
54
+ return negativeWaveShaperNode.context;
55
+ },
56
+ get curve() {
57
+ return unmodifiedCurve;
58
+ },
59
+ set curve(value) {
60
+ if (value !== null && value.length < 2) {
61
+ throw createInvalidStateError();
62
+ }
63
+ if (value === null) {
64
+ negativeWaveShaperNode.curve = value;
65
+ positiveWaveShaperNode.curve = value;
66
+ } else {
67
+ const curveLength = value.length;
68
+ const negativeCurve = new Float32Array(curveLength + 2 - curveLength % 2);
69
+ const positiveCurve = new Float32Array(curveLength + 2 - curveLength % 2);
70
+ negativeCurve[0] = value[0];
71
+ positiveCurve[0] = -value[curveLength - 1];
72
+ const length = Math.ceil((curveLength + 1) / 2);
73
+ const centerIndex = (curveLength + 1) / 2 - 1;
74
+ for (let i = 1; i < length; i += 1) {
75
+ const theoreticIndex = i / length * centerIndex;
76
+ const lowerIndex = Math.floor(theoreticIndex);
77
+ const upperIndex = Math.ceil(theoreticIndex);
78
+ negativeCurve[i] = lowerIndex === upperIndex ? value[lowerIndex] : (1 - (theoreticIndex - lowerIndex)) * value[lowerIndex] + (1 - (upperIndex - theoreticIndex)) * value[upperIndex];
79
+ positiveCurve[i] = lowerIndex === upperIndex ? -value[curveLength - 1 - lowerIndex] : -((1 - (theoreticIndex - lowerIndex)) * value[curveLength - 1 - lowerIndex]) - (1 - (upperIndex - theoreticIndex)) * value[curveLength - 1 - upperIndex];
80
+ }
81
+ negativeCurve[length] = curveLength % 2 === 1 ? value[length - 1] : (value[length - 2] + value[length - 1]) / 2;
82
+ negativeWaveShaperNode.curve = negativeCurve;
83
+ positiveWaveShaperNode.curve = positiveCurve;
84
+ }
85
+ unmodifiedCurve = value;
86
+ if (isConnected) {
87
+ if (isDCCurve(unmodifiedCurve) && disconnectNativeAudioBufferSourceNode === null) {
88
+ disconnectNativeAudioBufferSourceNode = createConnectedNativeAudioBufferSourceNode(nativeContext, inputGainNode);
89
+ } else if (disconnectNativeAudioBufferSourceNode !== null) {
90
+ disconnectNativeAudioBufferSourceNode();
91
+ disconnectNativeAudioBufferSourceNode = null;
92
+ }
93
+ }
94
+ },
95
+ get inputs() {
96
+ return [inputGainNode];
97
+ },
98
+ get numberOfInputs() {
99
+ return negativeWaveShaperNode.numberOfInputs;
100
+ },
101
+ get numberOfOutputs() {
102
+ return negativeWaveShaperNode.numberOfOutputs;
103
+ },
104
+ get oversample() {
105
+ return negativeWaveShaperNode.oversample;
106
+ },
107
+ set oversample(value) {
108
+ negativeWaveShaperNode.oversample = value;
109
+ positiveWaveShaperNode.oversample = value;
110
+ },
111
+ addEventListener(...args) {
112
+ return inputGainNode.addEventListener(args[0], args[1], args[2]);
113
+ },
114
+ dispatchEvent(...args) {
115
+ return inputGainNode.dispatchEvent(args[0]);
116
+ },
117
+ removeEventListener(...args) {
118
+ return inputGainNode.removeEventListener(args[0], args[1], args[2]);
119
+ }
120
+ };
121
+ if (curve !== null) {
122
+ nativeWaveShaperNodeFaker.curve = curve instanceof Float32Array ? curve : new Float32Array(curve);
123
+ }
124
+ if (oversample !== nativeWaveShaperNodeFaker.oversample) {
125
+ nativeWaveShaperNodeFaker.oversample = oversample;
126
+ }
127
+ const whenConnected = () => {
128
+ inputGainNode.connect(negativeWaveShaperNode).connect(outputGainNode);
129
+ inputGainNode.connect(invertGainNode).connect(positiveWaveShaperNode).connect(revertGainNode).connect(outputGainNode);
130
+ isConnected = true;
131
+ if (isDCCurve(unmodifiedCurve)) {
132
+ disconnectNativeAudioBufferSourceNode = createConnectedNativeAudioBufferSourceNode(nativeContext, inputGainNode);
133
+ }
134
+ };
135
+ const whenDisconnected = () => {
136
+ inputGainNode.disconnect(negativeWaveShaperNode);
137
+ negativeWaveShaperNode.disconnect(outputGainNode);
138
+ inputGainNode.disconnect(invertGainNode);
139
+ invertGainNode.disconnect(positiveWaveShaperNode);
140
+ positiveWaveShaperNode.disconnect(revertGainNode);
141
+ revertGainNode.disconnect(outputGainNode);
142
+ isConnected = false;
143
+ if (disconnectNativeAudioBufferSourceNode !== null) {
144
+ disconnectNativeAudioBufferSourceNode();
145
+ disconnectNativeAudioBufferSourceNode = null;
146
+ }
147
+ };
148
+ return monitorConnections(interceptConnections(nativeWaveShaperNodeFaker, outputGainNode), whenConnected, whenDisconnected);
149
+ };
150
+ };
151
+ export {
152
+ createNativeWaveShaperNodeFakerFactory
153
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const createNotSupportedError = () => new DOMException("", "NotSupportedError");
4
+ exports.createNotSupportedError = createNotSupportedError;
@@ -0,0 +1,4 @@
1
+ const createNotSupportedError = () => new DOMException("", "NotSupportedError");
2
+ export {
3
+ createNotSupportedError
4
+ };