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.
- package/dist/index.d.ts +3 -3
- package/dist/node_modules/automation-events/build/es2019/classes/automation-event-list.cjs +137 -0
- package/dist/node_modules/automation-events/build/es2019/classes/automation-event-list.js +137 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-and-hold-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-and-hold-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-scheduled-values-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-scheduled-values-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-exponential-ramp-to-value-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-exponential-ramp-to-value-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-extended-exponential-ramp-to-value-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-extended-exponential-ramp-to-value-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-extended-linear-ramp-to-value-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-extended-linear-ramp-to-value-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-linear-ramp-to-value-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-linear-ramp-to-value-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-target-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-target-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-curve-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-curve-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-end-time-and-value-of-previous-automation-event.cjs +16 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-end-time-and-value-of-previous-automation-event.js +16 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-event-time.cjs +16 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-event-time.js +16 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-exponential-ramp-value-at-time.cjs +12 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-exponential-ramp-value-at-time.js +12 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-linear-ramp-value-at-time.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-linear-ramp-value-at-time.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-target-value-at-time.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-target-value-at-time.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-value-curve-value-at-time.cjs +8 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-value-curve-value-at-time.js +8 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-value-of-automation-event-at-index-at-time.cjs +11 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-value-of-automation-event-at-index-at-time.js +11 -0
- package/dist/node_modules/automation-events/build/es2019/functions/interpolate-value.cjs +11 -0
- package/dist/node_modules/automation-events/build/es2019/functions/interpolate-value.js +11 -0
- package/dist/node_modules/automation-events/build/es2019/guards/any-ramp-to-value-automation-event.cjs +8 -0
- package/dist/node_modules/automation-events/build/es2019/guards/any-ramp-to-value-automation-event.js +8 -0
- package/dist/node_modules/automation-events/build/es2019/guards/cancel-and-hold-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/cancel-and-hold-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/cancel-scheduled-values-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/cancel-scheduled-values-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/exponential-ramp-to-value-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/exponential-ramp-to-value-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/linear-ramp-to-value-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/linear-ramp-to-value-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/set-target-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/set-target-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/set-value-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/set-value-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/set-value-curve-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/set-value-curve-automation-event.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/constants.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/constants.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/abort-error.cjs +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/abort-error.js +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-active-input-connection-to-audio-node.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-active-input-connection-to-audio-node.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-node-connections.cjs +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-node-connections.js +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-param-connections.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-param-connections.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-worklet-module.cjs +115 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-worklet-module.js +115 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-connection-to-audio-node.cjs +60 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-connection-to-audio-node.js +60 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-passive-input-connection-to-audio-node.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-passive-input-connection-to-audio-node.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-silent-connection.cjs +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-silent-connection.js +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-constructor.cjs +73 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-constructor.js +73 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-renderer-factory.cjs +37 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-renderer-factory.js +37 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-constructor.cjs +37 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-constructor.js +37 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-constructor.cjs +103 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-constructor.js +103 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-renderer-factory.cjs +58 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-renderer-factory.js +58 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-constructor.cjs +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-constructor.js +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-renderer-factory.cjs +21 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-renderer-factory.js +21 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-listener-factory.cjs +220 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-listener-factory.js +220 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-node-constructor.cjs +274 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-node-constructor.js +274 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-factory.cjs +152 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-factory.js +152 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-renderer.cjs +29 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-renderer.js +29 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/base-audio-context-constructor.cjs +83 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/base-audio-context-constructor.js +83 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-constructor.cjs +63 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-constructor.js +63 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-renderer-factory.cjs +49 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-renderer-factory.js +49 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/cache-test-result.cjs +31 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/cache-test-result.js +31 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-constructor.cjs +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-constructor.js +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-renderer-factory.cjs +34 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-renderer-factory.js +34 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-constructor.cjs +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-constructor.js +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-renderer-factory.cjs +34 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-renderer-factory.js +34 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/connect-audio-param.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/connect-audio-param.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/connected-native-audio-buffer-source-node-factory.cjs +26 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/connected-native-audio-buffer-source-node-factory.js +26 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-constructor.cjs +63 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-constructor.js +63 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-renderer-factory.cjs +53 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-renderer-factory.js +53 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convert-number-to-unsigned-long.cjs +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convert-number-to-unsigned-long.js +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-constructor.cjs +51 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-constructor.js +51 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-renderer-factory.cjs +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-renderer-factory.js +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/create-native-offline-audio-context.cjs +18 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/create-native-offline-audio-context.js +18 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/data-clone-error.cjs +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/data-clone-error.js +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/decode-audio-data.cjs +59 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/decode-audio-data.js +59 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/decrement-cycle-counter.cjs +32 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/decrement-cycle-counter.js +32 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-constructor.cjs +27 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-constructor.js +27 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-renderer-factory.cjs +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-renderer-factory.js +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delete-active-input-connection-to-audio-node.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delete-active-input-connection-to-audio-node.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/detect-cycles.cjs +21 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/detect-cycles.js +21 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-constructor.cjs +80 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-constructor.js +80 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-renderer-factory.cjs +51 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-renderer-factory.js +51 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/encoding-error.cjs +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/encoding-error.js +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/evaluate-source.cjs +45 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/evaluate-source.js +45 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/event-target-constructor.cjs +30 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/event-target-constructor.js +30 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/expose-current-frame-and-current-time.cjs +29 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/expose-current-frame-and-current-time.js +29 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/fetch-source.cjs +15 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/fetch-source.js +15 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-constructor.cjs +26 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-constructor.js +26 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-renderer-factory.cjs +39 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-renderer-factory.js +39 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-renderer.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-renderer.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-tail-time.cjs +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-tail-time.js +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-param-renderer.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-param-renderer.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-native-context.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-native-context.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-or-create-backup-offline-audio-context.cjs +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-or-create-backup-offline-audio-context.js +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-unrendered-audio-worklet-nodes.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-unrendered-audio-worklet-nodes.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-constructor.cjs +27 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-constructor.js +27 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-renderer-factory.cjs +93 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-renderer-factory.js +93 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/increment-cycle-counter-factory.cjs +29 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/increment-cycle-counter-factory.js +29 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/index-size-error.cjs +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/index-size-error.js +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-access-error.cjs +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-access-error.js +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-state-error.cjs +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-state-error.js +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-context.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-context.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-node.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-node.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-param.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-param.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-context.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-context.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-offline-audio-context.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-offline-audio-context.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-secure-context.cjs +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-secure-context.js +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/minimal-base-audio-context-constructor.cjs +43 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/minimal-base-audio-context-constructor.js +43 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/monitor-connections.cjs +59 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/monitor-connections.js +59 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-analyser-node-factory.cjs +24 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-analyser-node-factory.js +24 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-constructor.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-constructor.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-source-node-factory.cjs +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-source-node-factory.js +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-context-constructor.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-context-constructor.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-destination-node.cjs +51 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-destination-node.js +51 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-worklet-node-constructor.cjs +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-worklet-node-constructor.js +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-biquad-filter-node.cjs +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-biquad-filter-node.js +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-merger-node-factory.cjs +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-merger-node-factory.js +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-splitter-node.cjs +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-splitter-node.js +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-factory.cjs +25 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-factory.js +25 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-faker-factory.cjs +88 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-faker-factory.js +88 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-convolver-node-factory.cjs +34 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-convolver-node-factory.js +34 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-delay-node.cjs +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-delay-node.js +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-dynamics-compressor-node-factory.cjs +23 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-dynamics-compressor-node-factory.js +23 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-gain-node.cjs +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-gain-node.js +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-factory.cjs +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-factory.js +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-faker-factory.cjs +139 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-faker-factory.js +139 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-offline-audio-context-constructor.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-offline-audio-context-constructor.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-oscillator-node-factory.cjs +32 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-oscillator-node-factory.js +32 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-factory.cjs +30 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-factory.js +30 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-faker-factory.cjs +277 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-faker-factory.js +277 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-periodic-wave-factory.cjs +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-periodic-wave-factory.js +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-script-processor-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-script-processor-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-factory.cjs +28 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-factory.js +28 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-faker-factory.cjs +244 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-faker-factory.js +244 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-factory.cjs +48 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-factory.js +48 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-faker-factory.cjs +153 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-faker-factory.js +153 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/not-supported-error.cjs +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/not-supported-error.js +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/offline-audio-context-constructor.cjs +71 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/offline-audio-context-constructor.js +71 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-constructor.cjs +90 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-constructor.js +90 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-renderer-factory.cjs +62 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-renderer-factory.js +62 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-constructor.cjs +109 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-constructor.js +109 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-renderer-factory.cjs +166 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-renderer-factory.js +166 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/periodic-wave-constructor.cjs +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/periodic-wave-constructor.js +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-automation.cjs +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-automation.js +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-node.cjs +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-node.js +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-param.cjs +15 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-param.js +15 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-native-offline-audio-context.cjs +36 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-native-offline-audio-context.js +36 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/set-audio-node-tail-time.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/set-audio-node-tail-time.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/start-rendering.cjs +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/start-rendering.js +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-constructor.cjs +29 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-constructor.js +29 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-renderer-factory.cjs +44 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-renderer-factory.js +44 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-buffer-constructor-support.cjs +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-buffer-constructor-support.js +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-worklet-processor-post-message-support.cjs +35 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-worklet-processor-post-message-support.js +35 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-offline-audio-context-current-time-support.cjs +24 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-offline-audio-context-current-time-support.js +24 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-constructor.cjs +49 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-constructor.js +49 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-renderer-factory.cjs +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-renderer-factory.js +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/window.cjs +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/window.js +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods-out-of-bounds.cjs +25 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods-out-of-bounds.js +25 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods.cjs +33 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods.js +33 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-source-node-stop-method-nullified-buffer.cjs +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-source-node-stop-method-nullified-buffer.js +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-channel-merger-node.cjs +30 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-channel-merger-node.js +30 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/globals.cjs +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/globals.js +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-buffer-source-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-buffer-source-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node-output-connection.cjs +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node-output-connection.js +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-worklet-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-worklet-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/biquad-filter-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/biquad-filter-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/constant-source-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/constant-source-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/delay-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/delay-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/gain-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/gain-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node-faker.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node-faker.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/oscillator-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/oscillator-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/stereo-panner-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/stereo-panner-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-active-input-connection-to-audio-param.cjs +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-active-input-connection-to-audio-param.js +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-passive-input-connection-to-audio-param.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-passive-input-connection-to-audio-param.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-audio-param-value.cjs +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-audio-param-value.js +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-option.cjs +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-option.js +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-options.cjs +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-options.js +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/compute-buffer-size.cjs +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/compute-buffer-size.js +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/connect-native-audio-node-to-native-audio-node.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/connect-native-audio-node-to-native-audio-node.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-active-audio-node-input-connections.cjs +35 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-active-audio-node-input-connections.js +35 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-audio-graph.cjs +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-audio-graph.js +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection-to-audio-param.cjs +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection-to-audio-param.js +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-event-listeners-of-audio-node.cjs +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-event-listeners-of-audio-node.js +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-node.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-node.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-param.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-param.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/detach-array-buffer.cjs +21 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/detach-array-buffer.js +21 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/disconnect-native-audio-node-from-native-audio-node.cjs +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/disconnect-native-audio-node-from-native-audio-node.js +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/filter-buffer.cjs +26 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/filter-buffer.js +26 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-node-connections.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-node-connections.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-param-connections.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-param-connections.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-event-listeners-of-audio-node.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-event-listeners-of-audio-node.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-first-sample.cjs +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-first-sample.js +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-node.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-node.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-param.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-param.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-value-for-key.cjs +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-value-for-key.js +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/insert-element-in-set.cjs +15 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/insert-element-in-set.js +15 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/intercept-connections.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/intercept-connections.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-active-audio-node.cjs +5 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-active-audio-node.js +5 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-constructible.cjs +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-constructible.js +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-dc-curve.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-dc-curve.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-owned-by-context.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-owned-by-context.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-part-of-a-cycle.cjs +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-part-of-a-cycle.js +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-passive-audio-node.cjs +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-passive-audio-node.js +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/overwrite-accessors.cjs +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/overwrite-accessors.js +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/pick-element-from-set.cjs +15 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/pick-element-from-set.js +15 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-channel-splitter-options.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-channel-splitter-options.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-periodic-wave-options.cjs +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-periodic-wave-options.js +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-active.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-active.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive-when-necessary.cjs +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive-when-necessary.js +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-value-at-time-until-possible.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-value-at-time-until-possible.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/split-import-statements.cjs +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/split-import-statements.js +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-analyser-node-get-float-time-domain-data-method-support.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-analyser-node-get-float-time-domain-data-method-support.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-copy-channel-methods-out-of-bounds-support.cjs +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-copy-channel-methods-out-of-bounds-support.js +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-consecutive-calls-support.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-consecutive-calls-support.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-offset-clamping-support.cjs +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-offset-clamping-support.js +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-stop-method-nullified-buffer-support.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-stop-method-nullified-buffer-support.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-node-disconnect-method-support.cjs +36 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-node-disconnect-method-support.js +36 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-start-method-negative-parameters-support.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-start-method-negative-parameters-support.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-consecutive-calls-support.cjs +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-consecutive-calls-support.js +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-negative-parameters-support.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-negative-parameters-support.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-promise-support.cjs +18 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-promise-support.js +18 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/visit-each-audio-node-once.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/visit-each-audio-node-once.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-analyser-node-get-float-time-domain-data-method.cjs +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-analyser-node-get-float-time-domain-data-method.js +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-get-channel-data-method.cjs +18 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-get-channel-data-method.js +18 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-consecutive-calls.cjs +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-consecutive-calls.js +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-offset-clamping.cjs +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-offset-clamping.js +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-node-disconnect-method.cjs +61 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-node-disconnect-method.js +61 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-start-method-negative-parameters.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-start-method-negative-parameters.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-consecutive-calls.cjs +31 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-consecutive-calls.js +31 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-negative-parameters.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-negative-parameters.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-channel-splitter-node.cjs +31 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-channel-splitter-node.js +31 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-event-listener.cjs +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-event-listener.js +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-iir-filter-node-get-frequency-response-method.cjs +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-iir-filter-node-get-frequency-response-method.js +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/module.cjs +298 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/module.js +298 -0
- package/dist/recorder/live-streaming/recorder/recorder-compound.cjs +1 -1
- package/dist/recorder/live-streaming/recorder/recorder-compound.js +1 -1
- package/dist/waveform/util-audio-decoder.cjs +4 -6
- package/dist/waveform/util-audio-decoder.js +4 -6
- package/dist/waveform/waveform-renderer.cjs +3 -3
- package/dist/waveform/waveform-renderer.js +3 -3
- package/package.json +3 -2
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { computeBufferSize } from "../helpers/compute-buffer-size.js";
|
|
2
|
+
import { filterBuffer } from "../helpers/filter-buffer.js";
|
|
3
|
+
import { interceptConnections } from "../helpers/intercept-connections.js";
|
|
4
|
+
function divide(a, b) {
|
|
5
|
+
const denominator = b[0] * b[0] + b[1] * b[1];
|
|
6
|
+
return [(a[0] * b[0] + a[1] * b[1]) / denominator, (a[1] * b[0] - a[0] * b[1]) / denominator];
|
|
7
|
+
}
|
|
8
|
+
function multiply(a, b) {
|
|
9
|
+
return [a[0] * b[0] - a[1] * b[1], a[0] * b[1] + a[1] * b[0]];
|
|
10
|
+
}
|
|
11
|
+
function evaluatePolynomial(coefficient, z) {
|
|
12
|
+
let result = [0, 0];
|
|
13
|
+
for (let i = coefficient.length - 1; i >= 0; i -= 1) {
|
|
14
|
+
result = multiply(result, z);
|
|
15
|
+
result[0] += coefficient[i];
|
|
16
|
+
}
|
|
17
|
+
return result;
|
|
18
|
+
}
|
|
19
|
+
const createNativeIIRFilterNodeFakerFactory = (createInvalidAccessError, createInvalidStateError, createNativeScriptProcessorNode, createNotSupportedError) => {
|
|
20
|
+
return (nativeContext, baseLatency, { channelCount, channelCountMode, channelInterpretation, feedback, feedforward }) => {
|
|
21
|
+
const bufferSize = computeBufferSize(baseLatency, nativeContext.sampleRate);
|
|
22
|
+
const convertedFeedback = feedback instanceof Float64Array ? feedback : new Float64Array(feedback);
|
|
23
|
+
const convertedFeedforward = feedforward instanceof Float64Array ? feedforward : new Float64Array(feedforward);
|
|
24
|
+
const feedbackLength = convertedFeedback.length;
|
|
25
|
+
const feedforwardLength = convertedFeedforward.length;
|
|
26
|
+
const minLength = Math.min(feedbackLength, feedforwardLength);
|
|
27
|
+
if (feedbackLength === 0 || feedbackLength > 20) {
|
|
28
|
+
throw createNotSupportedError();
|
|
29
|
+
}
|
|
30
|
+
if (convertedFeedback[0] === 0) {
|
|
31
|
+
throw createInvalidStateError();
|
|
32
|
+
}
|
|
33
|
+
if (feedforwardLength === 0 || feedforwardLength > 20) {
|
|
34
|
+
throw createNotSupportedError();
|
|
35
|
+
}
|
|
36
|
+
if (convertedFeedforward[0] === 0) {
|
|
37
|
+
throw createInvalidStateError();
|
|
38
|
+
}
|
|
39
|
+
if (convertedFeedback[0] !== 1) {
|
|
40
|
+
for (let i = 0; i < feedforwardLength; i += 1) {
|
|
41
|
+
convertedFeedforward[i] /= convertedFeedback[0];
|
|
42
|
+
}
|
|
43
|
+
for (let i = 1; i < feedbackLength; i += 1) {
|
|
44
|
+
convertedFeedback[i] /= convertedFeedback[0];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
const scriptProcessorNode = createNativeScriptProcessorNode(nativeContext, bufferSize, channelCount, channelCount);
|
|
48
|
+
scriptProcessorNode.channelCount = channelCount;
|
|
49
|
+
scriptProcessorNode.channelCountMode = channelCountMode;
|
|
50
|
+
scriptProcessorNode.channelInterpretation = channelInterpretation;
|
|
51
|
+
const bufferLength = 32;
|
|
52
|
+
const bufferIndexes = [];
|
|
53
|
+
const xBuffers = [];
|
|
54
|
+
const yBuffers = [];
|
|
55
|
+
for (let i = 0; i < channelCount; i += 1) {
|
|
56
|
+
bufferIndexes.push(0);
|
|
57
|
+
const xBuffer = new Float32Array(bufferLength);
|
|
58
|
+
const yBuffer = new Float32Array(bufferLength);
|
|
59
|
+
xBuffer.fill(0);
|
|
60
|
+
yBuffer.fill(0);
|
|
61
|
+
xBuffers.push(xBuffer);
|
|
62
|
+
yBuffers.push(yBuffer);
|
|
63
|
+
}
|
|
64
|
+
scriptProcessorNode.onaudioprocess = (event) => {
|
|
65
|
+
const inputBuffer = event.inputBuffer;
|
|
66
|
+
const outputBuffer = event.outputBuffer;
|
|
67
|
+
const numberOfChannels = inputBuffer.numberOfChannels;
|
|
68
|
+
for (let i = 0; i < numberOfChannels; i += 1) {
|
|
69
|
+
const input = inputBuffer.getChannelData(i);
|
|
70
|
+
const output = outputBuffer.getChannelData(i);
|
|
71
|
+
bufferIndexes[i] = filterBuffer(convertedFeedback, feedbackLength, convertedFeedforward, feedforwardLength, minLength, xBuffers[i], yBuffers[i], bufferIndexes[i], bufferLength, input, output);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
const nyquist = nativeContext.sampleRate / 2;
|
|
75
|
+
const nativeIIRFilterNodeFaker = {
|
|
76
|
+
get bufferSize() {
|
|
77
|
+
return bufferSize;
|
|
78
|
+
},
|
|
79
|
+
get channelCount() {
|
|
80
|
+
return scriptProcessorNode.channelCount;
|
|
81
|
+
},
|
|
82
|
+
set channelCount(value) {
|
|
83
|
+
scriptProcessorNode.channelCount = value;
|
|
84
|
+
},
|
|
85
|
+
get channelCountMode() {
|
|
86
|
+
return scriptProcessorNode.channelCountMode;
|
|
87
|
+
},
|
|
88
|
+
set channelCountMode(value) {
|
|
89
|
+
scriptProcessorNode.channelCountMode = value;
|
|
90
|
+
},
|
|
91
|
+
get channelInterpretation() {
|
|
92
|
+
return scriptProcessorNode.channelInterpretation;
|
|
93
|
+
},
|
|
94
|
+
set channelInterpretation(value) {
|
|
95
|
+
scriptProcessorNode.channelInterpretation = value;
|
|
96
|
+
},
|
|
97
|
+
get context() {
|
|
98
|
+
return scriptProcessorNode.context;
|
|
99
|
+
},
|
|
100
|
+
get inputs() {
|
|
101
|
+
return [scriptProcessorNode];
|
|
102
|
+
},
|
|
103
|
+
get numberOfInputs() {
|
|
104
|
+
return scriptProcessorNode.numberOfInputs;
|
|
105
|
+
},
|
|
106
|
+
get numberOfOutputs() {
|
|
107
|
+
return scriptProcessorNode.numberOfOutputs;
|
|
108
|
+
},
|
|
109
|
+
addEventListener(...args) {
|
|
110
|
+
return scriptProcessorNode.addEventListener(args[0], args[1], args[2]);
|
|
111
|
+
},
|
|
112
|
+
dispatchEvent(...args) {
|
|
113
|
+
return scriptProcessorNode.dispatchEvent(args[0]);
|
|
114
|
+
},
|
|
115
|
+
getFrequencyResponse(frequencyHz, magResponse, phaseResponse) {
|
|
116
|
+
if (frequencyHz.length !== magResponse.length || magResponse.length !== phaseResponse.length) {
|
|
117
|
+
throw createInvalidAccessError();
|
|
118
|
+
}
|
|
119
|
+
const length = frequencyHz.length;
|
|
120
|
+
for (let i = 0; i < length; i += 1) {
|
|
121
|
+
const omega = -Math.PI * (frequencyHz[i] / nyquist);
|
|
122
|
+
const z = [Math.cos(omega), Math.sin(omega)];
|
|
123
|
+
const numerator = evaluatePolynomial(convertedFeedforward, z);
|
|
124
|
+
const denominator = evaluatePolynomial(convertedFeedback, z);
|
|
125
|
+
const response = divide(numerator, denominator);
|
|
126
|
+
magResponse[i] = Math.sqrt(response[0] * response[0] + response[1] * response[1]);
|
|
127
|
+
phaseResponse[i] = Math.atan2(response[1], response[0]);
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
removeEventListener(...args) {
|
|
131
|
+
return scriptProcessorNode.removeEventListener(args[0], args[1], args[2]);
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
return interceptConnections(nativeIIRFilterNodeFaker, scriptProcessorNode);
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
export {
|
|
138
|
+
createNativeIIRFilterNodeFakerFactory
|
|
139
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createNativeOfflineAudioContextConstructor = (window) => {
|
|
4
|
+
if (window === null) {
|
|
5
|
+
return null;
|
|
6
|
+
}
|
|
7
|
+
if (window.hasOwnProperty("OfflineAudioContext")) {
|
|
8
|
+
return window.OfflineAudioContext;
|
|
9
|
+
}
|
|
10
|
+
return window.hasOwnProperty("webkitOfflineAudioContext") ? window.webkitOfflineAudioContext : null;
|
|
11
|
+
};
|
|
12
|
+
exports.createNativeOfflineAudioContextConstructor = createNativeOfflineAudioContextConstructor;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const createNativeOfflineAudioContextConstructor = (window) => {
|
|
2
|
+
if (window === null) {
|
|
3
|
+
return null;
|
|
4
|
+
}
|
|
5
|
+
if (window.hasOwnProperty("OfflineAudioContext")) {
|
|
6
|
+
return window.OfflineAudioContext;
|
|
7
|
+
}
|
|
8
|
+
return window.hasOwnProperty("webkitOfflineAudioContext") ? window.webkitOfflineAudioContext : null;
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
createNativeOfflineAudioContextConstructor
|
|
12
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const assignNativeAudioNodeAudioParamValue = require("../helpers/assign-native-audio-node-audio-param-value.cjs");
|
|
4
|
+
const assignNativeAudioNodeOption = require("../helpers/assign-native-audio-node-option.cjs");
|
|
5
|
+
const assignNativeAudioNodeOptions = require("../helpers/assign-native-audio-node-options.cjs");
|
|
6
|
+
const wrapAudioScheduledSourceNodeStartMethodNegativeParameters = require("../helpers/wrap-audio-scheduled-source-node-start-method-negative-parameters.cjs");
|
|
7
|
+
const wrapAudioScheduledSourceNodeStopMethodNegativeParameters = require("../helpers/wrap-audio-scheduled-source-node-stop-method-negative-parameters.cjs");
|
|
8
|
+
const createNativeOscillatorNodeFactory = (addSilentConnection, cacheTestResult, testAudioScheduledSourceNodeStartMethodNegativeParametersSupport, testAudioScheduledSourceNodeStopMethodConsecutiveCallsSupport, testAudioScheduledSourceNodeStopMethodNegativeParametersSupport, wrapAudioScheduledSourceNodeStopMethodConsecutiveCalls) => {
|
|
9
|
+
return (nativeContext, options) => {
|
|
10
|
+
const nativeOscillatorNode = nativeContext.createOscillator();
|
|
11
|
+
assignNativeAudioNodeOptions.assignNativeAudioNodeOptions(nativeOscillatorNode, options);
|
|
12
|
+
assignNativeAudioNodeAudioParamValue.assignNativeAudioNodeAudioParamValue(nativeOscillatorNode, options, "detune");
|
|
13
|
+
assignNativeAudioNodeAudioParamValue.assignNativeAudioNodeAudioParamValue(nativeOscillatorNode, options, "frequency");
|
|
14
|
+
if (options.periodicWave !== void 0) {
|
|
15
|
+
nativeOscillatorNode.setPeriodicWave(options.periodicWave);
|
|
16
|
+
} else {
|
|
17
|
+
assignNativeAudioNodeOption.assignNativeAudioNodeOption(nativeOscillatorNode, options, "type");
|
|
18
|
+
}
|
|
19
|
+
if (!cacheTestResult(testAudioScheduledSourceNodeStartMethodNegativeParametersSupport, () => testAudioScheduledSourceNodeStartMethodNegativeParametersSupport(nativeContext))) {
|
|
20
|
+
wrapAudioScheduledSourceNodeStartMethodNegativeParameters.wrapAudioScheduledSourceNodeStartMethodNegativeParameters(nativeOscillatorNode);
|
|
21
|
+
}
|
|
22
|
+
if (!cacheTestResult(testAudioScheduledSourceNodeStopMethodConsecutiveCallsSupport, () => testAudioScheduledSourceNodeStopMethodConsecutiveCallsSupport(nativeContext))) {
|
|
23
|
+
wrapAudioScheduledSourceNodeStopMethodConsecutiveCalls(nativeOscillatorNode, nativeContext);
|
|
24
|
+
}
|
|
25
|
+
if (!cacheTestResult(testAudioScheduledSourceNodeStopMethodNegativeParametersSupport, () => testAudioScheduledSourceNodeStopMethodNegativeParametersSupport(nativeContext))) {
|
|
26
|
+
wrapAudioScheduledSourceNodeStopMethodNegativeParameters.wrapAudioScheduledSourceNodeStopMethodNegativeParameters(nativeOscillatorNode);
|
|
27
|
+
}
|
|
28
|
+
addSilentConnection(nativeContext, nativeOscillatorNode);
|
|
29
|
+
return nativeOscillatorNode;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
exports.createNativeOscillatorNodeFactory = createNativeOscillatorNodeFactory;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { assignNativeAudioNodeAudioParamValue } from "../helpers/assign-native-audio-node-audio-param-value.js";
|
|
2
|
+
import { assignNativeAudioNodeOption } from "../helpers/assign-native-audio-node-option.js";
|
|
3
|
+
import { assignNativeAudioNodeOptions } from "../helpers/assign-native-audio-node-options.js";
|
|
4
|
+
import { wrapAudioScheduledSourceNodeStartMethodNegativeParameters } from "../helpers/wrap-audio-scheduled-source-node-start-method-negative-parameters.js";
|
|
5
|
+
import { wrapAudioScheduledSourceNodeStopMethodNegativeParameters } from "../helpers/wrap-audio-scheduled-source-node-stop-method-negative-parameters.js";
|
|
6
|
+
const createNativeOscillatorNodeFactory = (addSilentConnection, cacheTestResult, testAudioScheduledSourceNodeStartMethodNegativeParametersSupport, testAudioScheduledSourceNodeStopMethodConsecutiveCallsSupport, testAudioScheduledSourceNodeStopMethodNegativeParametersSupport, wrapAudioScheduledSourceNodeStopMethodConsecutiveCalls) => {
|
|
7
|
+
return (nativeContext, options) => {
|
|
8
|
+
const nativeOscillatorNode = nativeContext.createOscillator();
|
|
9
|
+
assignNativeAudioNodeOptions(nativeOscillatorNode, options);
|
|
10
|
+
assignNativeAudioNodeAudioParamValue(nativeOscillatorNode, options, "detune");
|
|
11
|
+
assignNativeAudioNodeAudioParamValue(nativeOscillatorNode, options, "frequency");
|
|
12
|
+
if (options.periodicWave !== void 0) {
|
|
13
|
+
nativeOscillatorNode.setPeriodicWave(options.periodicWave);
|
|
14
|
+
} else {
|
|
15
|
+
assignNativeAudioNodeOption(nativeOscillatorNode, options, "type");
|
|
16
|
+
}
|
|
17
|
+
if (!cacheTestResult(testAudioScheduledSourceNodeStartMethodNegativeParametersSupport, () => testAudioScheduledSourceNodeStartMethodNegativeParametersSupport(nativeContext))) {
|
|
18
|
+
wrapAudioScheduledSourceNodeStartMethodNegativeParameters(nativeOscillatorNode);
|
|
19
|
+
}
|
|
20
|
+
if (!cacheTestResult(testAudioScheduledSourceNodeStopMethodConsecutiveCallsSupport, () => testAudioScheduledSourceNodeStopMethodConsecutiveCallsSupport(nativeContext))) {
|
|
21
|
+
wrapAudioScheduledSourceNodeStopMethodConsecutiveCalls(nativeOscillatorNode, nativeContext);
|
|
22
|
+
}
|
|
23
|
+
if (!cacheTestResult(testAudioScheduledSourceNodeStopMethodNegativeParametersSupport, () => testAudioScheduledSourceNodeStopMethodNegativeParametersSupport(nativeContext))) {
|
|
24
|
+
wrapAudioScheduledSourceNodeStopMethodNegativeParameters(nativeOscillatorNode);
|
|
25
|
+
}
|
|
26
|
+
addSilentConnection(nativeContext, nativeOscillatorNode);
|
|
27
|
+
return nativeOscillatorNode;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
createNativeOscillatorNodeFactory
|
|
32
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const assignNativeAudioNodeAudioParamValue = require("../helpers/assign-native-audio-node-audio-param-value.cjs");
|
|
4
|
+
const assignNativeAudioNodeOption = require("../helpers/assign-native-audio-node-option.cjs");
|
|
5
|
+
const assignNativeAudioNodeOptions = require("../helpers/assign-native-audio-node-options.cjs");
|
|
6
|
+
const createNativePannerNodeFactory = (createNativePannerNodeFaker) => {
|
|
7
|
+
return (nativeContext, options) => {
|
|
8
|
+
const nativePannerNode = nativeContext.createPanner();
|
|
9
|
+
if (nativePannerNode.orientationX === void 0) {
|
|
10
|
+
return createNativePannerNodeFaker(nativeContext, options);
|
|
11
|
+
}
|
|
12
|
+
assignNativeAudioNodeOptions.assignNativeAudioNodeOptions(nativePannerNode, options);
|
|
13
|
+
assignNativeAudioNodeAudioParamValue.assignNativeAudioNodeAudioParamValue(nativePannerNode, options, "orientationX");
|
|
14
|
+
assignNativeAudioNodeAudioParamValue.assignNativeAudioNodeAudioParamValue(nativePannerNode, options, "orientationY");
|
|
15
|
+
assignNativeAudioNodeAudioParamValue.assignNativeAudioNodeAudioParamValue(nativePannerNode, options, "orientationZ");
|
|
16
|
+
assignNativeAudioNodeAudioParamValue.assignNativeAudioNodeAudioParamValue(nativePannerNode, options, "positionX");
|
|
17
|
+
assignNativeAudioNodeAudioParamValue.assignNativeAudioNodeAudioParamValue(nativePannerNode, options, "positionY");
|
|
18
|
+
assignNativeAudioNodeAudioParamValue.assignNativeAudioNodeAudioParamValue(nativePannerNode, options, "positionZ");
|
|
19
|
+
assignNativeAudioNodeOption.assignNativeAudioNodeOption(nativePannerNode, options, "coneInnerAngle");
|
|
20
|
+
assignNativeAudioNodeOption.assignNativeAudioNodeOption(nativePannerNode, options, "coneOuterAngle");
|
|
21
|
+
assignNativeAudioNodeOption.assignNativeAudioNodeOption(nativePannerNode, options, "coneOuterGain");
|
|
22
|
+
assignNativeAudioNodeOption.assignNativeAudioNodeOption(nativePannerNode, options, "distanceModel");
|
|
23
|
+
assignNativeAudioNodeOption.assignNativeAudioNodeOption(nativePannerNode, options, "maxDistance");
|
|
24
|
+
assignNativeAudioNodeOption.assignNativeAudioNodeOption(nativePannerNode, options, "panningModel");
|
|
25
|
+
assignNativeAudioNodeOption.assignNativeAudioNodeOption(nativePannerNode, options, "refDistance");
|
|
26
|
+
assignNativeAudioNodeOption.assignNativeAudioNodeOption(nativePannerNode, options, "rolloffFactor");
|
|
27
|
+
return nativePannerNode;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
exports.createNativePannerNodeFactory = createNativePannerNodeFactory;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { assignNativeAudioNodeAudioParamValue } from "../helpers/assign-native-audio-node-audio-param-value.js";
|
|
2
|
+
import { assignNativeAudioNodeOption } from "../helpers/assign-native-audio-node-option.js";
|
|
3
|
+
import { assignNativeAudioNodeOptions } from "../helpers/assign-native-audio-node-options.js";
|
|
4
|
+
const createNativePannerNodeFactory = (createNativePannerNodeFaker) => {
|
|
5
|
+
return (nativeContext, options) => {
|
|
6
|
+
const nativePannerNode = nativeContext.createPanner();
|
|
7
|
+
if (nativePannerNode.orientationX === void 0) {
|
|
8
|
+
return createNativePannerNodeFaker(nativeContext, options);
|
|
9
|
+
}
|
|
10
|
+
assignNativeAudioNodeOptions(nativePannerNode, options);
|
|
11
|
+
assignNativeAudioNodeAudioParamValue(nativePannerNode, options, "orientationX");
|
|
12
|
+
assignNativeAudioNodeAudioParamValue(nativePannerNode, options, "orientationY");
|
|
13
|
+
assignNativeAudioNodeAudioParamValue(nativePannerNode, options, "orientationZ");
|
|
14
|
+
assignNativeAudioNodeAudioParamValue(nativePannerNode, options, "positionX");
|
|
15
|
+
assignNativeAudioNodeAudioParamValue(nativePannerNode, options, "positionY");
|
|
16
|
+
assignNativeAudioNodeAudioParamValue(nativePannerNode, options, "positionZ");
|
|
17
|
+
assignNativeAudioNodeOption(nativePannerNode, options, "coneInnerAngle");
|
|
18
|
+
assignNativeAudioNodeOption(nativePannerNode, options, "coneOuterAngle");
|
|
19
|
+
assignNativeAudioNodeOption(nativePannerNode, options, "coneOuterGain");
|
|
20
|
+
assignNativeAudioNodeOption(nativePannerNode, options, "distanceModel");
|
|
21
|
+
assignNativeAudioNodeOption(nativePannerNode, options, "maxDistance");
|
|
22
|
+
assignNativeAudioNodeOption(nativePannerNode, options, "panningModel");
|
|
23
|
+
assignNativeAudioNodeOption(nativePannerNode, options, "refDistance");
|
|
24
|
+
assignNativeAudioNodeOption(nativePannerNode, options, "rolloffFactor");
|
|
25
|
+
return nativePannerNode;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
createNativePannerNodeFactory
|
|
30
|
+
};
|
|
@@ -0,0 +1,277 @@
|
|
|
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 createNativePannerNodeFakerFactory = (connectNativeAudioNodeToNativeAudioNode, createInvalidStateError, createNativeChannelMergerNode, createNativeGainNode, createNativeScriptProcessorNode, createNativeWaveShaperNode, createNotSupportedError, disconnectNativeAudioNodeFromNativeAudioNode, getFirstSample, monitorConnections) => {
|
|
6
|
+
return (nativeContext, { coneInnerAngle, coneOuterAngle, coneOuterGain, distanceModel, maxDistance, orientationX, orientationY, orientationZ, panningModel, positionX, positionY, positionZ, refDistance, rolloffFactor, ...audioNodeOptions }) => {
|
|
7
|
+
const pannerNode = nativeContext.createPanner();
|
|
8
|
+
if (audioNodeOptions.channelCount > 2) {
|
|
9
|
+
throw createNotSupportedError();
|
|
10
|
+
}
|
|
11
|
+
if (audioNodeOptions.channelCountMode === "max") {
|
|
12
|
+
throw createNotSupportedError();
|
|
13
|
+
}
|
|
14
|
+
assignNativeAudioNodeOptions.assignNativeAudioNodeOptions(pannerNode, audioNodeOptions);
|
|
15
|
+
const SINGLE_CHANNEL_OPTIONS = {
|
|
16
|
+
channelCount: 1,
|
|
17
|
+
channelCountMode: "explicit",
|
|
18
|
+
channelInterpretation: "discrete"
|
|
19
|
+
};
|
|
20
|
+
const channelMergerNode = createNativeChannelMergerNode(nativeContext, {
|
|
21
|
+
...SINGLE_CHANNEL_OPTIONS,
|
|
22
|
+
channelInterpretation: "speakers",
|
|
23
|
+
numberOfInputs: 6
|
|
24
|
+
});
|
|
25
|
+
const inputGainNode = createNativeGainNode(nativeContext, { ...audioNodeOptions, gain: 1 });
|
|
26
|
+
const orientationXGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 1 });
|
|
27
|
+
const orientationYGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
|
|
28
|
+
const orientationZGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
|
|
29
|
+
const positionXGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
|
|
30
|
+
const positionYGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
|
|
31
|
+
const positionZGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
|
|
32
|
+
const scriptProcessorNode = createNativeScriptProcessorNode(nativeContext, 256, 6, 1);
|
|
33
|
+
const waveShaperNode = createNativeWaveShaperNode(nativeContext, {
|
|
34
|
+
...SINGLE_CHANNEL_OPTIONS,
|
|
35
|
+
curve: new Float32Array([1, 1]),
|
|
36
|
+
oversample: "none"
|
|
37
|
+
});
|
|
38
|
+
let lastOrientation = [orientationX, orientationY, orientationZ];
|
|
39
|
+
let lastPosition = [positionX, positionY, positionZ];
|
|
40
|
+
const buffer = new Float32Array(1);
|
|
41
|
+
scriptProcessorNode.onaudioprocess = ({ inputBuffer }) => {
|
|
42
|
+
const orientation = [
|
|
43
|
+
getFirstSample(inputBuffer, buffer, 0),
|
|
44
|
+
getFirstSample(inputBuffer, buffer, 1),
|
|
45
|
+
getFirstSample(inputBuffer, buffer, 2)
|
|
46
|
+
];
|
|
47
|
+
if (orientation.some((value, index) => value !== lastOrientation[index])) {
|
|
48
|
+
pannerNode.setOrientation(...orientation);
|
|
49
|
+
lastOrientation = orientation;
|
|
50
|
+
}
|
|
51
|
+
const positon = [
|
|
52
|
+
getFirstSample(inputBuffer, buffer, 3),
|
|
53
|
+
getFirstSample(inputBuffer, buffer, 4),
|
|
54
|
+
getFirstSample(inputBuffer, buffer, 5)
|
|
55
|
+
];
|
|
56
|
+
if (positon.some((value, index) => value !== lastPosition[index])) {
|
|
57
|
+
pannerNode.setPosition(...positon);
|
|
58
|
+
lastPosition = positon;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
Object.defineProperty(orientationYGainNode.gain, "defaultValue", { get: () => 0 });
|
|
62
|
+
Object.defineProperty(orientationZGainNode.gain, "defaultValue", { get: () => 0 });
|
|
63
|
+
Object.defineProperty(positionXGainNode.gain, "defaultValue", { get: () => 0 });
|
|
64
|
+
Object.defineProperty(positionYGainNode.gain, "defaultValue", { get: () => 0 });
|
|
65
|
+
Object.defineProperty(positionZGainNode.gain, "defaultValue", { get: () => 0 });
|
|
66
|
+
const nativePannerNodeFaker = {
|
|
67
|
+
get bufferSize() {
|
|
68
|
+
return void 0;
|
|
69
|
+
},
|
|
70
|
+
get channelCount() {
|
|
71
|
+
return pannerNode.channelCount;
|
|
72
|
+
},
|
|
73
|
+
set channelCount(value) {
|
|
74
|
+
if (value > 2) {
|
|
75
|
+
throw createNotSupportedError();
|
|
76
|
+
}
|
|
77
|
+
inputGainNode.channelCount = value;
|
|
78
|
+
pannerNode.channelCount = value;
|
|
79
|
+
},
|
|
80
|
+
get channelCountMode() {
|
|
81
|
+
return pannerNode.channelCountMode;
|
|
82
|
+
},
|
|
83
|
+
set channelCountMode(value) {
|
|
84
|
+
if (value === "max") {
|
|
85
|
+
throw createNotSupportedError();
|
|
86
|
+
}
|
|
87
|
+
inputGainNode.channelCountMode = value;
|
|
88
|
+
pannerNode.channelCountMode = value;
|
|
89
|
+
},
|
|
90
|
+
get channelInterpretation() {
|
|
91
|
+
return pannerNode.channelInterpretation;
|
|
92
|
+
},
|
|
93
|
+
set channelInterpretation(value) {
|
|
94
|
+
inputGainNode.channelInterpretation = value;
|
|
95
|
+
pannerNode.channelInterpretation = value;
|
|
96
|
+
},
|
|
97
|
+
get coneInnerAngle() {
|
|
98
|
+
return pannerNode.coneInnerAngle;
|
|
99
|
+
},
|
|
100
|
+
set coneInnerAngle(value) {
|
|
101
|
+
pannerNode.coneInnerAngle = value;
|
|
102
|
+
},
|
|
103
|
+
get coneOuterAngle() {
|
|
104
|
+
return pannerNode.coneOuterAngle;
|
|
105
|
+
},
|
|
106
|
+
set coneOuterAngle(value) {
|
|
107
|
+
pannerNode.coneOuterAngle = value;
|
|
108
|
+
},
|
|
109
|
+
get coneOuterGain() {
|
|
110
|
+
return pannerNode.coneOuterGain;
|
|
111
|
+
},
|
|
112
|
+
set coneOuterGain(value) {
|
|
113
|
+
if (value < 0 || value > 1) {
|
|
114
|
+
throw createInvalidStateError();
|
|
115
|
+
}
|
|
116
|
+
pannerNode.coneOuterGain = value;
|
|
117
|
+
},
|
|
118
|
+
get context() {
|
|
119
|
+
return pannerNode.context;
|
|
120
|
+
},
|
|
121
|
+
get distanceModel() {
|
|
122
|
+
return pannerNode.distanceModel;
|
|
123
|
+
},
|
|
124
|
+
set distanceModel(value) {
|
|
125
|
+
pannerNode.distanceModel = value;
|
|
126
|
+
},
|
|
127
|
+
get inputs() {
|
|
128
|
+
return [inputGainNode];
|
|
129
|
+
},
|
|
130
|
+
get maxDistance() {
|
|
131
|
+
return pannerNode.maxDistance;
|
|
132
|
+
},
|
|
133
|
+
set maxDistance(value) {
|
|
134
|
+
if (value < 0) {
|
|
135
|
+
throw new RangeError();
|
|
136
|
+
}
|
|
137
|
+
pannerNode.maxDistance = value;
|
|
138
|
+
},
|
|
139
|
+
get numberOfInputs() {
|
|
140
|
+
return pannerNode.numberOfInputs;
|
|
141
|
+
},
|
|
142
|
+
get numberOfOutputs() {
|
|
143
|
+
return pannerNode.numberOfOutputs;
|
|
144
|
+
},
|
|
145
|
+
get orientationX() {
|
|
146
|
+
return orientationXGainNode.gain;
|
|
147
|
+
},
|
|
148
|
+
get orientationY() {
|
|
149
|
+
return orientationYGainNode.gain;
|
|
150
|
+
},
|
|
151
|
+
get orientationZ() {
|
|
152
|
+
return orientationZGainNode.gain;
|
|
153
|
+
},
|
|
154
|
+
get panningModel() {
|
|
155
|
+
return pannerNode.panningModel;
|
|
156
|
+
},
|
|
157
|
+
set panningModel(value) {
|
|
158
|
+
pannerNode.panningModel = value;
|
|
159
|
+
},
|
|
160
|
+
get positionX() {
|
|
161
|
+
return positionXGainNode.gain;
|
|
162
|
+
},
|
|
163
|
+
get positionY() {
|
|
164
|
+
return positionYGainNode.gain;
|
|
165
|
+
},
|
|
166
|
+
get positionZ() {
|
|
167
|
+
return positionZGainNode.gain;
|
|
168
|
+
},
|
|
169
|
+
get refDistance() {
|
|
170
|
+
return pannerNode.refDistance;
|
|
171
|
+
},
|
|
172
|
+
set refDistance(value) {
|
|
173
|
+
if (value < 0) {
|
|
174
|
+
throw new RangeError();
|
|
175
|
+
}
|
|
176
|
+
pannerNode.refDistance = value;
|
|
177
|
+
},
|
|
178
|
+
get rolloffFactor() {
|
|
179
|
+
return pannerNode.rolloffFactor;
|
|
180
|
+
},
|
|
181
|
+
set rolloffFactor(value) {
|
|
182
|
+
if (value < 0) {
|
|
183
|
+
throw new RangeError();
|
|
184
|
+
}
|
|
185
|
+
pannerNode.rolloffFactor = value;
|
|
186
|
+
},
|
|
187
|
+
addEventListener(...args) {
|
|
188
|
+
return inputGainNode.addEventListener(args[0], args[1], args[2]);
|
|
189
|
+
},
|
|
190
|
+
dispatchEvent(...args) {
|
|
191
|
+
return inputGainNode.dispatchEvent(args[0]);
|
|
192
|
+
},
|
|
193
|
+
removeEventListener(...args) {
|
|
194
|
+
return inputGainNode.removeEventListener(args[0], args[1], args[2]);
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
if (coneInnerAngle !== nativePannerNodeFaker.coneInnerAngle) {
|
|
198
|
+
nativePannerNodeFaker.coneInnerAngle = coneInnerAngle;
|
|
199
|
+
}
|
|
200
|
+
if (coneOuterAngle !== nativePannerNodeFaker.coneOuterAngle) {
|
|
201
|
+
nativePannerNodeFaker.coneOuterAngle = coneOuterAngle;
|
|
202
|
+
}
|
|
203
|
+
if (coneOuterGain !== nativePannerNodeFaker.coneOuterGain) {
|
|
204
|
+
nativePannerNodeFaker.coneOuterGain = coneOuterGain;
|
|
205
|
+
}
|
|
206
|
+
if (distanceModel !== nativePannerNodeFaker.distanceModel) {
|
|
207
|
+
nativePannerNodeFaker.distanceModel = distanceModel;
|
|
208
|
+
}
|
|
209
|
+
if (maxDistance !== nativePannerNodeFaker.maxDistance) {
|
|
210
|
+
nativePannerNodeFaker.maxDistance = maxDistance;
|
|
211
|
+
}
|
|
212
|
+
if (orientationX !== nativePannerNodeFaker.orientationX.value) {
|
|
213
|
+
nativePannerNodeFaker.orientationX.value = orientationX;
|
|
214
|
+
}
|
|
215
|
+
if (orientationY !== nativePannerNodeFaker.orientationY.value) {
|
|
216
|
+
nativePannerNodeFaker.orientationY.value = orientationY;
|
|
217
|
+
}
|
|
218
|
+
if (orientationZ !== nativePannerNodeFaker.orientationZ.value) {
|
|
219
|
+
nativePannerNodeFaker.orientationZ.value = orientationZ;
|
|
220
|
+
}
|
|
221
|
+
if (panningModel !== nativePannerNodeFaker.panningModel) {
|
|
222
|
+
nativePannerNodeFaker.panningModel = panningModel;
|
|
223
|
+
}
|
|
224
|
+
if (positionX !== nativePannerNodeFaker.positionX.value) {
|
|
225
|
+
nativePannerNodeFaker.positionX.value = positionX;
|
|
226
|
+
}
|
|
227
|
+
if (positionY !== nativePannerNodeFaker.positionY.value) {
|
|
228
|
+
nativePannerNodeFaker.positionY.value = positionY;
|
|
229
|
+
}
|
|
230
|
+
if (positionZ !== nativePannerNodeFaker.positionZ.value) {
|
|
231
|
+
nativePannerNodeFaker.positionZ.value = positionZ;
|
|
232
|
+
}
|
|
233
|
+
if (refDistance !== nativePannerNodeFaker.refDistance) {
|
|
234
|
+
nativePannerNodeFaker.refDistance = refDistance;
|
|
235
|
+
}
|
|
236
|
+
if (rolloffFactor !== nativePannerNodeFaker.rolloffFactor) {
|
|
237
|
+
nativePannerNodeFaker.rolloffFactor = rolloffFactor;
|
|
238
|
+
}
|
|
239
|
+
if (lastOrientation[0] !== 1 || lastOrientation[1] !== 0 || lastOrientation[2] !== 0) {
|
|
240
|
+
pannerNode.setOrientation(...lastOrientation);
|
|
241
|
+
}
|
|
242
|
+
if (lastPosition[0] !== 0 || lastPosition[1] !== 0 || lastPosition[2] !== 0) {
|
|
243
|
+
pannerNode.setPosition(...lastPosition);
|
|
244
|
+
}
|
|
245
|
+
const whenConnected = () => {
|
|
246
|
+
inputGainNode.connect(pannerNode);
|
|
247
|
+
connectNativeAudioNodeToNativeAudioNode(inputGainNode, waveShaperNode, 0, 0);
|
|
248
|
+
waveShaperNode.connect(orientationXGainNode).connect(channelMergerNode, 0, 0);
|
|
249
|
+
waveShaperNode.connect(orientationYGainNode).connect(channelMergerNode, 0, 1);
|
|
250
|
+
waveShaperNode.connect(orientationZGainNode).connect(channelMergerNode, 0, 2);
|
|
251
|
+
waveShaperNode.connect(positionXGainNode).connect(channelMergerNode, 0, 3);
|
|
252
|
+
waveShaperNode.connect(positionYGainNode).connect(channelMergerNode, 0, 4);
|
|
253
|
+
waveShaperNode.connect(positionZGainNode).connect(channelMergerNode, 0, 5);
|
|
254
|
+
channelMergerNode.connect(scriptProcessorNode).connect(nativeContext.destination);
|
|
255
|
+
};
|
|
256
|
+
const whenDisconnected = () => {
|
|
257
|
+
inputGainNode.disconnect(pannerNode);
|
|
258
|
+
disconnectNativeAudioNodeFromNativeAudioNode(inputGainNode, waveShaperNode, 0, 0);
|
|
259
|
+
waveShaperNode.disconnect(orientationXGainNode);
|
|
260
|
+
orientationXGainNode.disconnect(channelMergerNode);
|
|
261
|
+
waveShaperNode.disconnect(orientationYGainNode);
|
|
262
|
+
orientationYGainNode.disconnect(channelMergerNode);
|
|
263
|
+
waveShaperNode.disconnect(orientationZGainNode);
|
|
264
|
+
orientationZGainNode.disconnect(channelMergerNode);
|
|
265
|
+
waveShaperNode.disconnect(positionXGainNode);
|
|
266
|
+
positionXGainNode.disconnect(channelMergerNode);
|
|
267
|
+
waveShaperNode.disconnect(positionYGainNode);
|
|
268
|
+
positionYGainNode.disconnect(channelMergerNode);
|
|
269
|
+
waveShaperNode.disconnect(positionZGainNode);
|
|
270
|
+
positionZGainNode.disconnect(channelMergerNode);
|
|
271
|
+
channelMergerNode.disconnect(scriptProcessorNode);
|
|
272
|
+
scriptProcessorNode.disconnect(nativeContext.destination);
|
|
273
|
+
};
|
|
274
|
+
return monitorConnections(interceptConnections.interceptConnections(nativePannerNodeFaker, pannerNode), whenConnected, whenDisconnected);
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
exports.createNativePannerNodeFakerFactory = createNativePannerNodeFakerFactory;
|