react-audio-wavekit 0.1.4 → 0.1.6
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/README.md +3 -0
- package/dist/index.d.ts +10 -0
- 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-recorder/index.cjs +3 -2
- package/dist/recorder/live-recorder/index.js +3 -2
- package/dist/recorder/live-streaming/use-recording-amplitudes.cjs +9 -3
- package/dist/recorder/live-streaming/use-recording-amplitudes.js +9 -3
- package/dist/waveform/util-audio-decoder.cjs +3 -5
- package/dist/waveform/util-audio-decoder.js +3 -5
- package/package.json +3 -2
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const isOwnedByContext = require("../helpers/is-owned-by-context.cjs");
|
|
4
|
+
const createAudioBufferSourceNodeRendererFactory = (connectAudioParam, createNativeAudioBufferSourceNode, getNativeAudioNode, renderAutomation, renderInputsOfAudioNode) => {
|
|
5
|
+
return () => {
|
|
6
|
+
const renderedNativeAudioBufferSourceNodes = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let start = null;
|
|
8
|
+
let stop = null;
|
|
9
|
+
const createAudioBufferSourceNode = async (proxy, nativeOfflineAudioContext) => {
|
|
10
|
+
let nativeAudioBufferSourceNode = getNativeAudioNode(proxy);
|
|
11
|
+
const nativeAudioBufferSourceNodeIsOwnedByContext = isOwnedByContext.isOwnedByContext(nativeAudioBufferSourceNode, nativeOfflineAudioContext);
|
|
12
|
+
if (!nativeAudioBufferSourceNodeIsOwnedByContext) {
|
|
13
|
+
const options = {
|
|
14
|
+
buffer: nativeAudioBufferSourceNode.buffer,
|
|
15
|
+
channelCount: nativeAudioBufferSourceNode.channelCount,
|
|
16
|
+
channelCountMode: nativeAudioBufferSourceNode.channelCountMode,
|
|
17
|
+
channelInterpretation: nativeAudioBufferSourceNode.channelInterpretation,
|
|
18
|
+
// Bug #149: Safari does not yet support the detune AudioParam.
|
|
19
|
+
loop: nativeAudioBufferSourceNode.loop,
|
|
20
|
+
loopEnd: nativeAudioBufferSourceNode.loopEnd,
|
|
21
|
+
loopStart: nativeAudioBufferSourceNode.loopStart,
|
|
22
|
+
playbackRate: nativeAudioBufferSourceNode.playbackRate.value
|
|
23
|
+
};
|
|
24
|
+
nativeAudioBufferSourceNode = createNativeAudioBufferSourceNode(nativeOfflineAudioContext, options);
|
|
25
|
+
if (start !== null) {
|
|
26
|
+
nativeAudioBufferSourceNode.start(...start);
|
|
27
|
+
}
|
|
28
|
+
if (stop !== null) {
|
|
29
|
+
nativeAudioBufferSourceNode.stop(stop);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
renderedNativeAudioBufferSourceNodes.set(nativeOfflineAudioContext, nativeAudioBufferSourceNode);
|
|
33
|
+
if (!nativeAudioBufferSourceNodeIsOwnedByContext) {
|
|
34
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.playbackRate, nativeAudioBufferSourceNode.playbackRate);
|
|
35
|
+
} else {
|
|
36
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.playbackRate, nativeAudioBufferSourceNode.playbackRate);
|
|
37
|
+
}
|
|
38
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeAudioBufferSourceNode);
|
|
39
|
+
return nativeAudioBufferSourceNode;
|
|
40
|
+
};
|
|
41
|
+
return {
|
|
42
|
+
set start(value) {
|
|
43
|
+
start = value;
|
|
44
|
+
},
|
|
45
|
+
set stop(value) {
|
|
46
|
+
stop = value;
|
|
47
|
+
},
|
|
48
|
+
render(proxy, nativeOfflineAudioContext) {
|
|
49
|
+
const renderedNativeAudioBufferSourceNode = renderedNativeAudioBufferSourceNodes.get(nativeOfflineAudioContext);
|
|
50
|
+
if (renderedNativeAudioBufferSourceNode !== void 0) {
|
|
51
|
+
return Promise.resolve(renderedNativeAudioBufferSourceNode);
|
|
52
|
+
}
|
|
53
|
+
return createAudioBufferSourceNode(proxy, nativeOfflineAudioContext);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
exports.createAudioBufferSourceNodeRendererFactory = createAudioBufferSourceNodeRendererFactory;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { isOwnedByContext } from "../helpers/is-owned-by-context.js";
|
|
2
|
+
const createAudioBufferSourceNodeRendererFactory = (connectAudioParam, createNativeAudioBufferSourceNode, getNativeAudioNode, renderAutomation, renderInputsOfAudioNode) => {
|
|
3
|
+
return () => {
|
|
4
|
+
const renderedNativeAudioBufferSourceNodes = /* @__PURE__ */ new WeakMap();
|
|
5
|
+
let start = null;
|
|
6
|
+
let stop = null;
|
|
7
|
+
const createAudioBufferSourceNode = async (proxy, nativeOfflineAudioContext) => {
|
|
8
|
+
let nativeAudioBufferSourceNode = getNativeAudioNode(proxy);
|
|
9
|
+
const nativeAudioBufferSourceNodeIsOwnedByContext = isOwnedByContext(nativeAudioBufferSourceNode, nativeOfflineAudioContext);
|
|
10
|
+
if (!nativeAudioBufferSourceNodeIsOwnedByContext) {
|
|
11
|
+
const options = {
|
|
12
|
+
buffer: nativeAudioBufferSourceNode.buffer,
|
|
13
|
+
channelCount: nativeAudioBufferSourceNode.channelCount,
|
|
14
|
+
channelCountMode: nativeAudioBufferSourceNode.channelCountMode,
|
|
15
|
+
channelInterpretation: nativeAudioBufferSourceNode.channelInterpretation,
|
|
16
|
+
// Bug #149: Safari does not yet support the detune AudioParam.
|
|
17
|
+
loop: nativeAudioBufferSourceNode.loop,
|
|
18
|
+
loopEnd: nativeAudioBufferSourceNode.loopEnd,
|
|
19
|
+
loopStart: nativeAudioBufferSourceNode.loopStart,
|
|
20
|
+
playbackRate: nativeAudioBufferSourceNode.playbackRate.value
|
|
21
|
+
};
|
|
22
|
+
nativeAudioBufferSourceNode = createNativeAudioBufferSourceNode(nativeOfflineAudioContext, options);
|
|
23
|
+
if (start !== null) {
|
|
24
|
+
nativeAudioBufferSourceNode.start(...start);
|
|
25
|
+
}
|
|
26
|
+
if (stop !== null) {
|
|
27
|
+
nativeAudioBufferSourceNode.stop(stop);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
renderedNativeAudioBufferSourceNodes.set(nativeOfflineAudioContext, nativeAudioBufferSourceNode);
|
|
31
|
+
if (!nativeAudioBufferSourceNodeIsOwnedByContext) {
|
|
32
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.playbackRate, nativeAudioBufferSourceNode.playbackRate);
|
|
33
|
+
} else {
|
|
34
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.playbackRate, nativeAudioBufferSourceNode.playbackRate);
|
|
35
|
+
}
|
|
36
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeAudioBufferSourceNode);
|
|
37
|
+
return nativeAudioBufferSourceNode;
|
|
38
|
+
};
|
|
39
|
+
return {
|
|
40
|
+
set start(value) {
|
|
41
|
+
start = value;
|
|
42
|
+
},
|
|
43
|
+
set stop(value) {
|
|
44
|
+
stop = value;
|
|
45
|
+
},
|
|
46
|
+
render(proxy, nativeOfflineAudioContext) {
|
|
47
|
+
const renderedNativeAudioBufferSourceNode = renderedNativeAudioBufferSourceNodes.get(nativeOfflineAudioContext);
|
|
48
|
+
if (renderedNativeAudioBufferSourceNode !== void 0) {
|
|
49
|
+
return Promise.resolve(renderedNativeAudioBufferSourceNode);
|
|
50
|
+
}
|
|
51
|
+
return createAudioBufferSourceNode(proxy, nativeOfflineAudioContext);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
createAudioBufferSourceNodeRendererFactory
|
|
58
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createAudioDestinationNodeConstructor = (audioNodeConstructor, createAudioDestinationNodeRenderer, createIndexSizeError, createInvalidStateError, createNativeAudioDestinationNode, getNativeContext, isNativeOfflineAudioContext, renderInputsOfAudioNode) => {
|
|
4
|
+
return class AudioDestinationNode extends audioNodeConstructor {
|
|
5
|
+
constructor(context, channelCount) {
|
|
6
|
+
const nativeContext = getNativeContext(context);
|
|
7
|
+
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
8
|
+
const nativeAudioDestinationNode = createNativeAudioDestinationNode(nativeContext, channelCount, isOffline);
|
|
9
|
+
const audioDestinationNodeRenderer = isOffline ? createAudioDestinationNodeRenderer(renderInputsOfAudioNode) : null;
|
|
10
|
+
super(context, false, nativeAudioDestinationNode, audioDestinationNodeRenderer);
|
|
11
|
+
this._isNodeOfNativeOfflineAudioContext = isOffline;
|
|
12
|
+
this._nativeAudioDestinationNode = nativeAudioDestinationNode;
|
|
13
|
+
}
|
|
14
|
+
get channelCount() {
|
|
15
|
+
return this._nativeAudioDestinationNode.channelCount;
|
|
16
|
+
}
|
|
17
|
+
set channelCount(value) {
|
|
18
|
+
if (this._isNodeOfNativeOfflineAudioContext) {
|
|
19
|
+
throw createInvalidStateError();
|
|
20
|
+
}
|
|
21
|
+
if (value > this._nativeAudioDestinationNode.maxChannelCount) {
|
|
22
|
+
throw createIndexSizeError();
|
|
23
|
+
}
|
|
24
|
+
this._nativeAudioDestinationNode.channelCount = value;
|
|
25
|
+
}
|
|
26
|
+
get channelCountMode() {
|
|
27
|
+
return this._nativeAudioDestinationNode.channelCountMode;
|
|
28
|
+
}
|
|
29
|
+
set channelCountMode(value) {
|
|
30
|
+
if (this._isNodeOfNativeOfflineAudioContext) {
|
|
31
|
+
throw createInvalidStateError();
|
|
32
|
+
}
|
|
33
|
+
this._nativeAudioDestinationNode.channelCountMode = value;
|
|
34
|
+
}
|
|
35
|
+
get maxChannelCount() {
|
|
36
|
+
return this._nativeAudioDestinationNode.maxChannelCount;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
exports.createAudioDestinationNodeConstructor = createAudioDestinationNodeConstructor;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const createAudioDestinationNodeConstructor = (audioNodeConstructor, createAudioDestinationNodeRenderer, createIndexSizeError, createInvalidStateError, createNativeAudioDestinationNode, getNativeContext, isNativeOfflineAudioContext, renderInputsOfAudioNode) => {
|
|
2
|
+
return class AudioDestinationNode extends audioNodeConstructor {
|
|
3
|
+
constructor(context, channelCount) {
|
|
4
|
+
const nativeContext = getNativeContext(context);
|
|
5
|
+
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
6
|
+
const nativeAudioDestinationNode = createNativeAudioDestinationNode(nativeContext, channelCount, isOffline);
|
|
7
|
+
const audioDestinationNodeRenderer = isOffline ? createAudioDestinationNodeRenderer(renderInputsOfAudioNode) : null;
|
|
8
|
+
super(context, false, nativeAudioDestinationNode, audioDestinationNodeRenderer);
|
|
9
|
+
this._isNodeOfNativeOfflineAudioContext = isOffline;
|
|
10
|
+
this._nativeAudioDestinationNode = nativeAudioDestinationNode;
|
|
11
|
+
}
|
|
12
|
+
get channelCount() {
|
|
13
|
+
return this._nativeAudioDestinationNode.channelCount;
|
|
14
|
+
}
|
|
15
|
+
set channelCount(value) {
|
|
16
|
+
if (this._isNodeOfNativeOfflineAudioContext) {
|
|
17
|
+
throw createInvalidStateError();
|
|
18
|
+
}
|
|
19
|
+
if (value > this._nativeAudioDestinationNode.maxChannelCount) {
|
|
20
|
+
throw createIndexSizeError();
|
|
21
|
+
}
|
|
22
|
+
this._nativeAudioDestinationNode.channelCount = value;
|
|
23
|
+
}
|
|
24
|
+
get channelCountMode() {
|
|
25
|
+
return this._nativeAudioDestinationNode.channelCountMode;
|
|
26
|
+
}
|
|
27
|
+
set channelCountMode(value) {
|
|
28
|
+
if (this._isNodeOfNativeOfflineAudioContext) {
|
|
29
|
+
throw createInvalidStateError();
|
|
30
|
+
}
|
|
31
|
+
this._nativeAudioDestinationNode.channelCountMode = value;
|
|
32
|
+
}
|
|
33
|
+
get maxChannelCount() {
|
|
34
|
+
return this._nativeAudioDestinationNode.maxChannelCount;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
createAudioDestinationNodeConstructor
|
|
40
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createAudioDestinationNodeRenderer = (renderInputsOfAudioNode) => {
|
|
4
|
+
const renderedNativeAudioDestinationNodes = /* @__PURE__ */ new WeakMap();
|
|
5
|
+
const createAudioDestinationNode = async (proxy, nativeOfflineAudioContext) => {
|
|
6
|
+
const nativeAudioDestinationNode = nativeOfflineAudioContext.destination;
|
|
7
|
+
renderedNativeAudioDestinationNodes.set(nativeOfflineAudioContext, nativeAudioDestinationNode);
|
|
8
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeAudioDestinationNode);
|
|
9
|
+
return nativeAudioDestinationNode;
|
|
10
|
+
};
|
|
11
|
+
return {
|
|
12
|
+
render(proxy, nativeOfflineAudioContext) {
|
|
13
|
+
const renderedNativeAudioDestinationNode = renderedNativeAudioDestinationNodes.get(nativeOfflineAudioContext);
|
|
14
|
+
if (renderedNativeAudioDestinationNode !== void 0) {
|
|
15
|
+
return Promise.resolve(renderedNativeAudioDestinationNode);
|
|
16
|
+
}
|
|
17
|
+
return createAudioDestinationNode(proxy, nativeOfflineAudioContext);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
exports.createAudioDestinationNodeRenderer = createAudioDestinationNodeRenderer;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const createAudioDestinationNodeRenderer = (renderInputsOfAudioNode) => {
|
|
2
|
+
const renderedNativeAudioDestinationNodes = /* @__PURE__ */ new WeakMap();
|
|
3
|
+
const createAudioDestinationNode = async (proxy, nativeOfflineAudioContext) => {
|
|
4
|
+
const nativeAudioDestinationNode = nativeOfflineAudioContext.destination;
|
|
5
|
+
renderedNativeAudioDestinationNodes.set(nativeOfflineAudioContext, nativeAudioDestinationNode);
|
|
6
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeAudioDestinationNode);
|
|
7
|
+
return nativeAudioDestinationNode;
|
|
8
|
+
};
|
|
9
|
+
return {
|
|
10
|
+
render(proxy, nativeOfflineAudioContext) {
|
|
11
|
+
const renderedNativeAudioDestinationNode = renderedNativeAudioDestinationNodes.get(nativeOfflineAudioContext);
|
|
12
|
+
if (renderedNativeAudioDestinationNode !== void 0) {
|
|
13
|
+
return Promise.resolve(renderedNativeAudioDestinationNode);
|
|
14
|
+
}
|
|
15
|
+
return createAudioDestinationNode(proxy, nativeOfflineAudioContext);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
createAudioDestinationNodeRenderer
|
|
21
|
+
};
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const constants = require("../constants.cjs");
|
|
4
|
+
const createAudioListenerFactory = (createAudioParam, createNativeChannelMergerNode, createNativeConstantSourceNode, createNativeScriptProcessorNode, createNotSupportedError, getFirstSample, isNativeOfflineAudioContext, overwriteAccessors) => {
|
|
5
|
+
return (context, nativeContext) => {
|
|
6
|
+
const nativeListener = nativeContext.listener;
|
|
7
|
+
const createFakeAudioParams = () => {
|
|
8
|
+
const buffer = new Float32Array(1);
|
|
9
|
+
const channelMergerNode = createNativeChannelMergerNode(nativeContext, {
|
|
10
|
+
channelCount: 1,
|
|
11
|
+
channelCountMode: "explicit",
|
|
12
|
+
channelInterpretation: "speakers",
|
|
13
|
+
numberOfInputs: 9
|
|
14
|
+
});
|
|
15
|
+
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
16
|
+
let isScriptProcessorNodeCreated = false;
|
|
17
|
+
let lastOrientation = [0, 0, -1, 0, 1, 0];
|
|
18
|
+
let lastPosition = [0, 0, 0];
|
|
19
|
+
const createScriptProcessorNode = () => {
|
|
20
|
+
if (isScriptProcessorNodeCreated) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
isScriptProcessorNodeCreated = true;
|
|
24
|
+
const scriptProcessorNode = createNativeScriptProcessorNode(nativeContext, 256, 9, 0);
|
|
25
|
+
scriptProcessorNode.onaudioprocess = ({ inputBuffer }) => {
|
|
26
|
+
const orientation = [
|
|
27
|
+
getFirstSample(inputBuffer, buffer, 0),
|
|
28
|
+
getFirstSample(inputBuffer, buffer, 1),
|
|
29
|
+
getFirstSample(inputBuffer, buffer, 2),
|
|
30
|
+
getFirstSample(inputBuffer, buffer, 3),
|
|
31
|
+
getFirstSample(inputBuffer, buffer, 4),
|
|
32
|
+
getFirstSample(inputBuffer, buffer, 5)
|
|
33
|
+
];
|
|
34
|
+
if (orientation.some((value, index) => value !== lastOrientation[index])) {
|
|
35
|
+
nativeListener.setOrientation(...orientation);
|
|
36
|
+
lastOrientation = orientation;
|
|
37
|
+
}
|
|
38
|
+
const positon = [
|
|
39
|
+
getFirstSample(inputBuffer, buffer, 6),
|
|
40
|
+
getFirstSample(inputBuffer, buffer, 7),
|
|
41
|
+
getFirstSample(inputBuffer, buffer, 8)
|
|
42
|
+
];
|
|
43
|
+
if (positon.some((value, index) => value !== lastPosition[index])) {
|
|
44
|
+
nativeListener.setPosition(...positon);
|
|
45
|
+
lastPosition = positon;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
channelMergerNode.connect(scriptProcessorNode);
|
|
49
|
+
};
|
|
50
|
+
const createSetOrientation = (index) => (value) => {
|
|
51
|
+
if (value !== lastOrientation[index]) {
|
|
52
|
+
lastOrientation[index] = value;
|
|
53
|
+
nativeListener.setOrientation(...lastOrientation);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const createSetPosition = (index) => (value) => {
|
|
57
|
+
if (value !== lastPosition[index]) {
|
|
58
|
+
lastPosition[index] = value;
|
|
59
|
+
nativeListener.setPosition(...lastPosition);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
const createFakeAudioParam = (input, initialValue, setValue) => {
|
|
63
|
+
const constantSourceNode = createNativeConstantSourceNode(nativeContext, {
|
|
64
|
+
channelCount: 1,
|
|
65
|
+
channelCountMode: "explicit",
|
|
66
|
+
channelInterpretation: "discrete",
|
|
67
|
+
offset: initialValue
|
|
68
|
+
});
|
|
69
|
+
constantSourceNode.connect(channelMergerNode, 0, input);
|
|
70
|
+
constantSourceNode.start();
|
|
71
|
+
Object.defineProperty(constantSourceNode.offset, "defaultValue", {
|
|
72
|
+
get() {
|
|
73
|
+
return initialValue;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
const audioParam = createAudioParam({ context }, isOffline, constantSourceNode.offset, constants.MOST_POSITIVE_SINGLE_FLOAT, constants.MOST_NEGATIVE_SINGLE_FLOAT);
|
|
77
|
+
overwriteAccessors(audioParam, "value", (get) => () => get.call(audioParam), (set) => (value) => {
|
|
78
|
+
try {
|
|
79
|
+
set.call(audioParam, value);
|
|
80
|
+
} catch (err) {
|
|
81
|
+
if (err.code !== 9) {
|
|
82
|
+
throw err;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
createScriptProcessorNode();
|
|
86
|
+
if (isOffline) {
|
|
87
|
+
setValue(value);
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
audioParam.cancelAndHoldAtTime = ((cancelAndHoldAtTime) => {
|
|
91
|
+
if (isOffline) {
|
|
92
|
+
return () => {
|
|
93
|
+
throw createNotSupportedError();
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
return (...args) => {
|
|
97
|
+
const value = cancelAndHoldAtTime.apply(audioParam, args);
|
|
98
|
+
createScriptProcessorNode();
|
|
99
|
+
return value;
|
|
100
|
+
};
|
|
101
|
+
})(audioParam.cancelAndHoldAtTime);
|
|
102
|
+
audioParam.cancelScheduledValues = ((cancelScheduledValues) => {
|
|
103
|
+
if (isOffline) {
|
|
104
|
+
return () => {
|
|
105
|
+
throw createNotSupportedError();
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
return (...args) => {
|
|
109
|
+
const value = cancelScheduledValues.apply(audioParam, args);
|
|
110
|
+
createScriptProcessorNode();
|
|
111
|
+
return value;
|
|
112
|
+
};
|
|
113
|
+
})(audioParam.cancelScheduledValues);
|
|
114
|
+
audioParam.exponentialRampToValueAtTime = ((exponentialRampToValueAtTime) => {
|
|
115
|
+
if (isOffline) {
|
|
116
|
+
return () => {
|
|
117
|
+
throw createNotSupportedError();
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
return (...args) => {
|
|
121
|
+
const value = exponentialRampToValueAtTime.apply(audioParam, args);
|
|
122
|
+
createScriptProcessorNode();
|
|
123
|
+
return value;
|
|
124
|
+
};
|
|
125
|
+
})(audioParam.exponentialRampToValueAtTime);
|
|
126
|
+
audioParam.linearRampToValueAtTime = ((linearRampToValueAtTime) => {
|
|
127
|
+
if (isOffline) {
|
|
128
|
+
return () => {
|
|
129
|
+
throw createNotSupportedError();
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
return (...args) => {
|
|
133
|
+
const value = linearRampToValueAtTime.apply(audioParam, args);
|
|
134
|
+
createScriptProcessorNode();
|
|
135
|
+
return value;
|
|
136
|
+
};
|
|
137
|
+
})(audioParam.linearRampToValueAtTime);
|
|
138
|
+
audioParam.setTargetAtTime = ((setTargetAtTime) => {
|
|
139
|
+
if (isOffline) {
|
|
140
|
+
return () => {
|
|
141
|
+
throw createNotSupportedError();
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
return (...args) => {
|
|
145
|
+
const value = setTargetAtTime.apply(audioParam, args);
|
|
146
|
+
createScriptProcessorNode();
|
|
147
|
+
return value;
|
|
148
|
+
};
|
|
149
|
+
})(audioParam.setTargetAtTime);
|
|
150
|
+
audioParam.setValueAtTime = ((setValueAtTime) => {
|
|
151
|
+
if (isOffline) {
|
|
152
|
+
return () => {
|
|
153
|
+
throw createNotSupportedError();
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
return (...args) => {
|
|
157
|
+
const value = setValueAtTime.apply(audioParam, args);
|
|
158
|
+
createScriptProcessorNode();
|
|
159
|
+
return value;
|
|
160
|
+
};
|
|
161
|
+
})(audioParam.setValueAtTime);
|
|
162
|
+
audioParam.setValueCurveAtTime = ((setValueCurveAtTime) => {
|
|
163
|
+
if (isOffline) {
|
|
164
|
+
return () => {
|
|
165
|
+
throw createNotSupportedError();
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
return (...args) => {
|
|
169
|
+
const value = setValueCurveAtTime.apply(audioParam, args);
|
|
170
|
+
createScriptProcessorNode();
|
|
171
|
+
return value;
|
|
172
|
+
};
|
|
173
|
+
})(audioParam.setValueCurveAtTime);
|
|
174
|
+
return audioParam;
|
|
175
|
+
};
|
|
176
|
+
return {
|
|
177
|
+
forwardX: createFakeAudioParam(0, 0, createSetOrientation(0)),
|
|
178
|
+
forwardY: createFakeAudioParam(1, 0, createSetOrientation(1)),
|
|
179
|
+
forwardZ: createFakeAudioParam(2, -1, createSetOrientation(2)),
|
|
180
|
+
positionX: createFakeAudioParam(6, 0, createSetPosition(0)),
|
|
181
|
+
positionY: createFakeAudioParam(7, 0, createSetPosition(1)),
|
|
182
|
+
positionZ: createFakeAudioParam(8, 0, createSetPosition(2)),
|
|
183
|
+
upX: createFakeAudioParam(3, 0, createSetOrientation(3)),
|
|
184
|
+
upY: createFakeAudioParam(4, 1, createSetOrientation(4)),
|
|
185
|
+
upZ: createFakeAudioParam(5, 0, createSetOrientation(5))
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
const { forwardX, forwardY, forwardZ, positionX, positionY, positionZ, upX, upY, upZ } = nativeListener.forwardX === void 0 ? createFakeAudioParams() : nativeListener;
|
|
189
|
+
return {
|
|
190
|
+
get forwardX() {
|
|
191
|
+
return forwardX;
|
|
192
|
+
},
|
|
193
|
+
get forwardY() {
|
|
194
|
+
return forwardY;
|
|
195
|
+
},
|
|
196
|
+
get forwardZ() {
|
|
197
|
+
return forwardZ;
|
|
198
|
+
},
|
|
199
|
+
get positionX() {
|
|
200
|
+
return positionX;
|
|
201
|
+
},
|
|
202
|
+
get positionY() {
|
|
203
|
+
return positionY;
|
|
204
|
+
},
|
|
205
|
+
get positionZ() {
|
|
206
|
+
return positionZ;
|
|
207
|
+
},
|
|
208
|
+
get upX() {
|
|
209
|
+
return upX;
|
|
210
|
+
},
|
|
211
|
+
get upY() {
|
|
212
|
+
return upY;
|
|
213
|
+
},
|
|
214
|
+
get upZ() {
|
|
215
|
+
return upZ;
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
exports.createAudioListenerFactory = createAudioListenerFactory;
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { MOST_POSITIVE_SINGLE_FLOAT, MOST_NEGATIVE_SINGLE_FLOAT } from "../constants.js";
|
|
2
|
+
const createAudioListenerFactory = (createAudioParam, createNativeChannelMergerNode, createNativeConstantSourceNode, createNativeScriptProcessorNode, createNotSupportedError, getFirstSample, isNativeOfflineAudioContext, overwriteAccessors) => {
|
|
3
|
+
return (context, nativeContext) => {
|
|
4
|
+
const nativeListener = nativeContext.listener;
|
|
5
|
+
const createFakeAudioParams = () => {
|
|
6
|
+
const buffer = new Float32Array(1);
|
|
7
|
+
const channelMergerNode = createNativeChannelMergerNode(nativeContext, {
|
|
8
|
+
channelCount: 1,
|
|
9
|
+
channelCountMode: "explicit",
|
|
10
|
+
channelInterpretation: "speakers",
|
|
11
|
+
numberOfInputs: 9
|
|
12
|
+
});
|
|
13
|
+
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
14
|
+
let isScriptProcessorNodeCreated = false;
|
|
15
|
+
let lastOrientation = [0, 0, -1, 0, 1, 0];
|
|
16
|
+
let lastPosition = [0, 0, 0];
|
|
17
|
+
const createScriptProcessorNode = () => {
|
|
18
|
+
if (isScriptProcessorNodeCreated) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
isScriptProcessorNodeCreated = true;
|
|
22
|
+
const scriptProcessorNode = createNativeScriptProcessorNode(nativeContext, 256, 9, 0);
|
|
23
|
+
scriptProcessorNode.onaudioprocess = ({ inputBuffer }) => {
|
|
24
|
+
const orientation = [
|
|
25
|
+
getFirstSample(inputBuffer, buffer, 0),
|
|
26
|
+
getFirstSample(inputBuffer, buffer, 1),
|
|
27
|
+
getFirstSample(inputBuffer, buffer, 2),
|
|
28
|
+
getFirstSample(inputBuffer, buffer, 3),
|
|
29
|
+
getFirstSample(inputBuffer, buffer, 4),
|
|
30
|
+
getFirstSample(inputBuffer, buffer, 5)
|
|
31
|
+
];
|
|
32
|
+
if (orientation.some((value, index) => value !== lastOrientation[index])) {
|
|
33
|
+
nativeListener.setOrientation(...orientation);
|
|
34
|
+
lastOrientation = orientation;
|
|
35
|
+
}
|
|
36
|
+
const positon = [
|
|
37
|
+
getFirstSample(inputBuffer, buffer, 6),
|
|
38
|
+
getFirstSample(inputBuffer, buffer, 7),
|
|
39
|
+
getFirstSample(inputBuffer, buffer, 8)
|
|
40
|
+
];
|
|
41
|
+
if (positon.some((value, index) => value !== lastPosition[index])) {
|
|
42
|
+
nativeListener.setPosition(...positon);
|
|
43
|
+
lastPosition = positon;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
channelMergerNode.connect(scriptProcessorNode);
|
|
47
|
+
};
|
|
48
|
+
const createSetOrientation = (index) => (value) => {
|
|
49
|
+
if (value !== lastOrientation[index]) {
|
|
50
|
+
lastOrientation[index] = value;
|
|
51
|
+
nativeListener.setOrientation(...lastOrientation);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
const createSetPosition = (index) => (value) => {
|
|
55
|
+
if (value !== lastPosition[index]) {
|
|
56
|
+
lastPosition[index] = value;
|
|
57
|
+
nativeListener.setPosition(...lastPosition);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
const createFakeAudioParam = (input, initialValue, setValue) => {
|
|
61
|
+
const constantSourceNode = createNativeConstantSourceNode(nativeContext, {
|
|
62
|
+
channelCount: 1,
|
|
63
|
+
channelCountMode: "explicit",
|
|
64
|
+
channelInterpretation: "discrete",
|
|
65
|
+
offset: initialValue
|
|
66
|
+
});
|
|
67
|
+
constantSourceNode.connect(channelMergerNode, 0, input);
|
|
68
|
+
constantSourceNode.start();
|
|
69
|
+
Object.defineProperty(constantSourceNode.offset, "defaultValue", {
|
|
70
|
+
get() {
|
|
71
|
+
return initialValue;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
const audioParam = createAudioParam({ context }, isOffline, constantSourceNode.offset, MOST_POSITIVE_SINGLE_FLOAT, MOST_NEGATIVE_SINGLE_FLOAT);
|
|
75
|
+
overwriteAccessors(audioParam, "value", (get) => () => get.call(audioParam), (set) => (value) => {
|
|
76
|
+
try {
|
|
77
|
+
set.call(audioParam, value);
|
|
78
|
+
} catch (err) {
|
|
79
|
+
if (err.code !== 9) {
|
|
80
|
+
throw err;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
createScriptProcessorNode();
|
|
84
|
+
if (isOffline) {
|
|
85
|
+
setValue(value);
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
audioParam.cancelAndHoldAtTime = ((cancelAndHoldAtTime) => {
|
|
89
|
+
if (isOffline) {
|
|
90
|
+
return () => {
|
|
91
|
+
throw createNotSupportedError();
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
return (...args) => {
|
|
95
|
+
const value = cancelAndHoldAtTime.apply(audioParam, args);
|
|
96
|
+
createScriptProcessorNode();
|
|
97
|
+
return value;
|
|
98
|
+
};
|
|
99
|
+
})(audioParam.cancelAndHoldAtTime);
|
|
100
|
+
audioParam.cancelScheduledValues = ((cancelScheduledValues) => {
|
|
101
|
+
if (isOffline) {
|
|
102
|
+
return () => {
|
|
103
|
+
throw createNotSupportedError();
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
return (...args) => {
|
|
107
|
+
const value = cancelScheduledValues.apply(audioParam, args);
|
|
108
|
+
createScriptProcessorNode();
|
|
109
|
+
return value;
|
|
110
|
+
};
|
|
111
|
+
})(audioParam.cancelScheduledValues);
|
|
112
|
+
audioParam.exponentialRampToValueAtTime = ((exponentialRampToValueAtTime) => {
|
|
113
|
+
if (isOffline) {
|
|
114
|
+
return () => {
|
|
115
|
+
throw createNotSupportedError();
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
return (...args) => {
|
|
119
|
+
const value = exponentialRampToValueAtTime.apply(audioParam, args);
|
|
120
|
+
createScriptProcessorNode();
|
|
121
|
+
return value;
|
|
122
|
+
};
|
|
123
|
+
})(audioParam.exponentialRampToValueAtTime);
|
|
124
|
+
audioParam.linearRampToValueAtTime = ((linearRampToValueAtTime) => {
|
|
125
|
+
if (isOffline) {
|
|
126
|
+
return () => {
|
|
127
|
+
throw createNotSupportedError();
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
return (...args) => {
|
|
131
|
+
const value = linearRampToValueAtTime.apply(audioParam, args);
|
|
132
|
+
createScriptProcessorNode();
|
|
133
|
+
return value;
|
|
134
|
+
};
|
|
135
|
+
})(audioParam.linearRampToValueAtTime);
|
|
136
|
+
audioParam.setTargetAtTime = ((setTargetAtTime) => {
|
|
137
|
+
if (isOffline) {
|
|
138
|
+
return () => {
|
|
139
|
+
throw createNotSupportedError();
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
return (...args) => {
|
|
143
|
+
const value = setTargetAtTime.apply(audioParam, args);
|
|
144
|
+
createScriptProcessorNode();
|
|
145
|
+
return value;
|
|
146
|
+
};
|
|
147
|
+
})(audioParam.setTargetAtTime);
|
|
148
|
+
audioParam.setValueAtTime = ((setValueAtTime) => {
|
|
149
|
+
if (isOffline) {
|
|
150
|
+
return () => {
|
|
151
|
+
throw createNotSupportedError();
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
return (...args) => {
|
|
155
|
+
const value = setValueAtTime.apply(audioParam, args);
|
|
156
|
+
createScriptProcessorNode();
|
|
157
|
+
return value;
|
|
158
|
+
};
|
|
159
|
+
})(audioParam.setValueAtTime);
|
|
160
|
+
audioParam.setValueCurveAtTime = ((setValueCurveAtTime) => {
|
|
161
|
+
if (isOffline) {
|
|
162
|
+
return () => {
|
|
163
|
+
throw createNotSupportedError();
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
return (...args) => {
|
|
167
|
+
const value = setValueCurveAtTime.apply(audioParam, args);
|
|
168
|
+
createScriptProcessorNode();
|
|
169
|
+
return value;
|
|
170
|
+
};
|
|
171
|
+
})(audioParam.setValueCurveAtTime);
|
|
172
|
+
return audioParam;
|
|
173
|
+
};
|
|
174
|
+
return {
|
|
175
|
+
forwardX: createFakeAudioParam(0, 0, createSetOrientation(0)),
|
|
176
|
+
forwardY: createFakeAudioParam(1, 0, createSetOrientation(1)),
|
|
177
|
+
forwardZ: createFakeAudioParam(2, -1, createSetOrientation(2)),
|
|
178
|
+
positionX: createFakeAudioParam(6, 0, createSetPosition(0)),
|
|
179
|
+
positionY: createFakeAudioParam(7, 0, createSetPosition(1)),
|
|
180
|
+
positionZ: createFakeAudioParam(8, 0, createSetPosition(2)),
|
|
181
|
+
upX: createFakeAudioParam(3, 0, createSetOrientation(3)),
|
|
182
|
+
upY: createFakeAudioParam(4, 1, createSetOrientation(4)),
|
|
183
|
+
upZ: createFakeAudioParam(5, 0, createSetOrientation(5))
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
const { forwardX, forwardY, forwardZ, positionX, positionY, positionZ, upX, upY, upZ } = nativeListener.forwardX === void 0 ? createFakeAudioParams() : nativeListener;
|
|
187
|
+
return {
|
|
188
|
+
get forwardX() {
|
|
189
|
+
return forwardX;
|
|
190
|
+
},
|
|
191
|
+
get forwardY() {
|
|
192
|
+
return forwardY;
|
|
193
|
+
},
|
|
194
|
+
get forwardZ() {
|
|
195
|
+
return forwardZ;
|
|
196
|
+
},
|
|
197
|
+
get positionX() {
|
|
198
|
+
return positionX;
|
|
199
|
+
},
|
|
200
|
+
get positionY() {
|
|
201
|
+
return positionY;
|
|
202
|
+
},
|
|
203
|
+
get positionZ() {
|
|
204
|
+
return positionZ;
|
|
205
|
+
},
|
|
206
|
+
get upX() {
|
|
207
|
+
return upX;
|
|
208
|
+
},
|
|
209
|
+
get upY() {
|
|
210
|
+
return upY;
|
|
211
|
+
},
|
|
212
|
+
get upZ() {
|
|
213
|
+
return upZ;
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
export {
|
|
219
|
+
createAudioListenerFactory
|
|
220
|
+
};
|