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,298 @@
|
|
|
1
|
+
import { createSetValueAutomationEvent } from "../../../automation-events/build/es2019/functions/create-set-value-automation-event.js";
|
|
2
|
+
import { createSetValueCurveAutomationEvent } from "../../../automation-events/build/es2019/functions/create-set-value-curve-automation-event.js";
|
|
3
|
+
import { createCancelAndHoldAutomationEvent } from "../../../automation-events/build/es2019/functions/create-cancel-and-hold-automation-event.js";
|
|
4
|
+
import { createCancelScheduledValuesAutomationEvent } from "../../../automation-events/build/es2019/functions/create-cancel-scheduled-values-automation-event.js";
|
|
5
|
+
import { createExponentialRampToValueAutomationEvent } from "../../../automation-events/build/es2019/functions/create-exponential-ramp-to-value-automation-event.js";
|
|
6
|
+
import { createLinearRampToValueAutomationEvent } from "../../../automation-events/build/es2019/functions/create-linear-ramp-to-value-automation-event.js";
|
|
7
|
+
import { createSetTargetAutomationEvent } from "../../../automation-events/build/es2019/functions/create-set-target-automation-event.js";
|
|
8
|
+
import { createAbortError } from "./factories/abort-error.js";
|
|
9
|
+
import { createAddActiveInputConnectionToAudioNode } from "./factories/add-active-input-connection-to-audio-node.js";
|
|
10
|
+
import { createAddAudioNodeConnections } from "./factories/add-audio-node-connections.js";
|
|
11
|
+
import { createAddAudioParamConnections } from "./factories/add-audio-param-connections.js";
|
|
12
|
+
import { createAddAudioWorkletModule } from "./factories/add-audio-worklet-module.js";
|
|
13
|
+
import { createAddConnectionToAudioNode } from "./factories/add-connection-to-audio-node.js";
|
|
14
|
+
import { createAddPassiveInputConnectionToAudioNode } from "./factories/add-passive-input-connection-to-audio-node.js";
|
|
15
|
+
import { createAddSilentConnection } from "./factories/add-silent-connection.js";
|
|
16
|
+
import { createAnalyserNodeConstructor } from "./factories/analyser-node-constructor.js";
|
|
17
|
+
import { createAnalyserNodeRendererFactory } from "./factories/analyser-node-renderer-factory.js";
|
|
18
|
+
import { createAudioBufferConstructor } from "./factories/audio-buffer-constructor.js";
|
|
19
|
+
import { createAudioBufferSourceNodeConstructor } from "./factories/audio-buffer-source-node-constructor.js";
|
|
20
|
+
import { createAudioBufferSourceNodeRendererFactory } from "./factories/audio-buffer-source-node-renderer-factory.js";
|
|
21
|
+
import { getAudioNodeConnections } from "./helpers/get-audio-node-connections.js";
|
|
22
|
+
import { getAudioParamConnections } from "./helpers/get-audio-param-connections.js";
|
|
23
|
+
import { isActiveAudioNode } from "./helpers/is-active-audio-node.js";
|
|
24
|
+
import { CONTEXT_STORE, AUDIO_PARAM_STORE, CYCLE_COUNTERS, AUDIO_NODE_CONNECTIONS_STORE, AUDIO_PARAM_CONNECTIONS_STORE } from "./globals.js";
|
|
25
|
+
import { getEventListenersOfAudioNode } from "./helpers/get-event-listeners-of-audio-node.js";
|
|
26
|
+
import { createAudioDestinationNodeConstructor } from "./factories/audio-destination-node-constructor.js";
|
|
27
|
+
import { createAudioDestinationNodeRenderer } from "./factories/audio-destination-node-renderer-factory.js";
|
|
28
|
+
import { createAudioListenerFactory } from "./factories/audio-listener-factory.js";
|
|
29
|
+
import { createAudioNodeConstructor } from "./factories/audio-node-constructor.js";
|
|
30
|
+
import { createAudioParamFactory } from "./factories/audio-param-factory.js";
|
|
31
|
+
import { createAudioParamRenderer } from "./factories/audio-param-renderer.js";
|
|
32
|
+
import { getNativeAudioNode } from "./helpers/get-native-audio-node.js";
|
|
33
|
+
import { getValueForKey } from "./helpers/get-value-for-key.js";
|
|
34
|
+
import { createBaseAudioContextConstructor } from "./factories/base-audio-context-constructor.js";
|
|
35
|
+
import { createBiquadFilterNodeConstructor } from "./factories/biquad-filter-node-constructor.js";
|
|
36
|
+
import { createBiquadFilterNodeRendererFactory } from "./factories/biquad-filter-node-renderer-factory.js";
|
|
37
|
+
import { createCacheTestResult } from "./factories/cache-test-result.js";
|
|
38
|
+
import { createChannelMergerNodeConstructor } from "./factories/channel-merger-node-constructor.js";
|
|
39
|
+
import { createChannelMergerNodeRendererFactory } from "./factories/channel-merger-node-renderer-factory.js";
|
|
40
|
+
import { createChannelSplitterNodeConstructor } from "./factories/channel-splitter-node-constructor.js";
|
|
41
|
+
import { createChannelSplitterNodeRendererFactory } from "./factories/channel-splitter-node-renderer-factory.js";
|
|
42
|
+
import { createConnectAudioParam } from "./factories/connect-audio-param.js";
|
|
43
|
+
import { createConnectedNativeAudioBufferSourceNodeFactory } from "./factories/connected-native-audio-buffer-source-node-factory.js";
|
|
44
|
+
import { createConstantSourceNodeConstructor } from "./factories/constant-source-node-constructor.js";
|
|
45
|
+
import { createConstantSourceNodeRendererFactory } from "./factories/constant-source-node-renderer-factory.js";
|
|
46
|
+
import { createConvertNumberToUnsignedLong } from "./factories/convert-number-to-unsigned-long.js";
|
|
47
|
+
import { createConvolverNodeConstructor } from "./factories/convolver-node-constructor.js";
|
|
48
|
+
import { createConvolverNodeRendererFactory } from "./factories/convolver-node-renderer-factory.js";
|
|
49
|
+
import { createCreateNativeOfflineAudioContext } from "./factories/create-native-offline-audio-context.js";
|
|
50
|
+
import { createDataCloneError } from "./factories/data-clone-error.js";
|
|
51
|
+
import { createDecodeAudioData } from "./factories/decode-audio-data.js";
|
|
52
|
+
import { createDecrementCycleCounter } from "./factories/decrement-cycle-counter.js";
|
|
53
|
+
import { createDelayNodeConstructor } from "./factories/delay-node-constructor.js";
|
|
54
|
+
import { createDelayNodeRendererFactory } from "./factories/delay-node-renderer-factory.js";
|
|
55
|
+
import { createDeleteActiveInputConnectionToAudioNode } from "./factories/delete-active-input-connection-to-audio-node.js";
|
|
56
|
+
import { createDetectCycles } from "./factories/detect-cycles.js";
|
|
57
|
+
import { createDynamicsCompressorNodeConstructor } from "./factories/dynamics-compressor-node-constructor.js";
|
|
58
|
+
import { createDynamicsCompressorNodeRendererFactory } from "./factories/dynamics-compressor-node-renderer-factory.js";
|
|
59
|
+
import { createEncodingError } from "./factories/encoding-error.js";
|
|
60
|
+
import { createEvaluateSource } from "./factories/evaluate-source.js";
|
|
61
|
+
import { createEventTargetConstructor } from "./factories/event-target-constructor.js";
|
|
62
|
+
import { createExposeCurrentFrameAndCurrentTime } from "./factories/expose-current-frame-and-current-time.js";
|
|
63
|
+
import { createFetchSource } from "./factories/fetch-source.js";
|
|
64
|
+
import { createGainNodeConstructor } from "./factories/gain-node-constructor.js";
|
|
65
|
+
import { createGainNodeRendererFactory } from "./factories/gain-node-renderer-factory.js";
|
|
66
|
+
import { createGetAudioNodeRenderer } from "./factories/get-audio-node-renderer.js";
|
|
67
|
+
import { createGetAudioNodeTailTime } from "./factories/get-audio-node-tail-time.js";
|
|
68
|
+
import { createGetAudioParamRenderer } from "./factories/get-audio-param-renderer.js";
|
|
69
|
+
import { createGetNativeContext } from "./factories/get-native-context.js";
|
|
70
|
+
import { createGetOrCreateBackupOfflineAudioContext } from "./factories/get-or-create-backup-offline-audio-context.js";
|
|
71
|
+
import { createGetUnrenderedAudioWorkletNodes } from "./factories/get-unrendered-audio-worklet-nodes.js";
|
|
72
|
+
import { createIIRFilterNodeConstructor } from "./factories/iir-filter-node-constructor.js";
|
|
73
|
+
import { createIIRFilterNodeRendererFactory } from "./factories/iir-filter-node-renderer-factory.js";
|
|
74
|
+
import { createIncrementCycleCounterFactory } from "./factories/increment-cycle-counter-factory.js";
|
|
75
|
+
import { createIndexSizeError } from "./factories/index-size-error.js";
|
|
76
|
+
import { createInvalidAccessError } from "./factories/invalid-access-error.js";
|
|
77
|
+
import { createInvalidStateError } from "./factories/invalid-state-error.js";
|
|
78
|
+
import { createIsNativeAudioContext } from "./factories/is-native-audio-context.js";
|
|
79
|
+
import { createIsNativeAudioNode } from "./factories/is-native-audio-node.js";
|
|
80
|
+
import { createIsNativeAudioParam } from "./factories/is-native-audio-param.js";
|
|
81
|
+
import { createIsNativeContext } from "./factories/is-native-context.js";
|
|
82
|
+
import { createIsNativeOfflineAudioContext } from "./factories/is-native-offline-audio-context.js";
|
|
83
|
+
import { createIsSecureContext } from "./factories/is-secure-context.js";
|
|
84
|
+
import { createMinimalBaseAudioContextConstructor } from "./factories/minimal-base-audio-context-constructor.js";
|
|
85
|
+
import { testPromiseSupport } from "./helpers/test-promise-support.js";
|
|
86
|
+
import { createMonitorConnections } from "./factories/monitor-connections.js";
|
|
87
|
+
import { createNativeAnalyserNodeFactory } from "./factories/native-analyser-node-factory.js";
|
|
88
|
+
import { createNativeAudioBufferConstructor } from "./factories/native-audio-buffer-constructor.js";
|
|
89
|
+
import { createNativeAudioBufferSourceNodeFactory } from "./factories/native-audio-buffer-source-node-factory.js";
|
|
90
|
+
import { createNativeAudioContextConstructor } from "./factories/native-audio-context-constructor.js";
|
|
91
|
+
import { createNativeAudioDestinationNodeFactory } from "./factories/native-audio-destination-node.js";
|
|
92
|
+
import { createNativeAudioWorkletNodeConstructor } from "./factories/native-audio-worklet-node-constructor.js";
|
|
93
|
+
import { createNativeBiquadFilterNode } from "./factories/native-biquad-filter-node.js";
|
|
94
|
+
import { createNativeChannelMergerNodeFactory } from "./factories/native-channel-merger-node-factory.js";
|
|
95
|
+
import { createNativeChannelSplitterNode } from "./factories/native-channel-splitter-node.js";
|
|
96
|
+
import { createNativeConstantSourceNodeFactory } from "./factories/native-constant-source-node-factory.js";
|
|
97
|
+
import { createNativeConstantSourceNodeFakerFactory } from "./factories/native-constant-source-node-faker-factory.js";
|
|
98
|
+
import { createNativeConvolverNodeFactory } from "./factories/native-convolver-node-factory.js";
|
|
99
|
+
import { createNativeDelayNode } from "./factories/native-delay-node.js";
|
|
100
|
+
import { createNativeDynamicsCompressorNodeFactory } from "./factories/native-dynamics-compressor-node-factory.js";
|
|
101
|
+
import { createNativeGainNode } from "./factories/native-gain-node.js";
|
|
102
|
+
import { createNativeIIRFilterNodeFactory } from "./factories/native-iir-filter-node-factory.js";
|
|
103
|
+
import { createNativeIIRFilterNodeFakerFactory } from "./factories/native-iir-filter-node-faker-factory.js";
|
|
104
|
+
import { createNativeOfflineAudioContextConstructor } from "./factories/native-offline-audio-context-constructor.js";
|
|
105
|
+
import { createNativeOscillatorNodeFactory } from "./factories/native-oscillator-node-factory.js";
|
|
106
|
+
import { createNativePannerNodeFactory } from "./factories/native-panner-node-factory.js";
|
|
107
|
+
import { createNativePannerNodeFakerFactory } from "./factories/native-panner-node-faker-factory.js";
|
|
108
|
+
import { createNativePeriodicWaveFactory } from "./factories/native-periodic-wave-factory.js";
|
|
109
|
+
import { createNativeScriptProcessorNode } from "./factories/native-script-processor-node.js";
|
|
110
|
+
import { createNativeStereoPannerNodeFactory } from "./factories/native-stereo-panner-node-factory.js";
|
|
111
|
+
import { createNativeStereoPannerNodeFakerFactory } from "./factories/native-stereo-panner-node-faker-factory.js";
|
|
112
|
+
import { createNativeWaveShaperNodeFactory } from "./factories/native-wave-shaper-node-factory.js";
|
|
113
|
+
import { createNativeWaveShaperNodeFakerFactory } from "./factories/native-wave-shaper-node-faker-factory.js";
|
|
114
|
+
import { createNotSupportedError } from "./factories/not-supported-error.js";
|
|
115
|
+
import { createOfflineAudioContextConstructor } from "./factories/offline-audio-context-constructor.js";
|
|
116
|
+
import { createOscillatorNodeConstructor } from "./factories/oscillator-node-constructor.js";
|
|
117
|
+
import { createOscillatorNodeRendererFactory } from "./factories/oscillator-node-renderer-factory.js";
|
|
118
|
+
import { createPannerNodeConstructor } from "./factories/panner-node-constructor.js";
|
|
119
|
+
import { createPannerNodeRendererFactory } from "./factories/panner-node-renderer-factory.js";
|
|
120
|
+
import { createPeriodicWaveConstructor } from "./factories/periodic-wave-constructor.js";
|
|
121
|
+
import { createRenderAutomation } from "./factories/render-automation.js";
|
|
122
|
+
import { createRenderInputsOfAudioNode } from "./factories/render-inputs-of-audio-node.js";
|
|
123
|
+
import { createRenderInputsOfAudioParam } from "./factories/render-inputs-of-audio-param.js";
|
|
124
|
+
import { createRenderNativeOfflineAudioContext } from "./factories/render-native-offline-audio-context.js";
|
|
125
|
+
import { createSetAudioNodeTailTime } from "./factories/set-audio-node-tail-time.js";
|
|
126
|
+
import { createStartRendering } from "./factories/start-rendering.js";
|
|
127
|
+
import { createStereoPannerNodeConstructor } from "./factories/stereo-panner-node-constructor.js";
|
|
128
|
+
import { createStereoPannerNodeRendererFactory } from "./factories/stereo-panner-node-renderer-factory.js";
|
|
129
|
+
import { createTestAudioBufferConstructorSupport } from "./factories/test-audio-buffer-constructor-support.js";
|
|
130
|
+
import { createTestAudioWorkletProcessorPostMessageSupport } from "./factories/test-audio-worklet-processor-post-message-support.js";
|
|
131
|
+
import { createTestOfflineAudioContextCurrentTimeSupport } from "./factories/test-offline-audio-context-current-time-support.js";
|
|
132
|
+
import { createWaveShaperNodeConstructor } from "./factories/wave-shaper-node-constructor.js";
|
|
133
|
+
import { createWaveShaperNodeRendererFactory } from "./factories/wave-shaper-node-renderer-factory.js";
|
|
134
|
+
import { createWindow } from "./factories/window.js";
|
|
135
|
+
import { createWrapAudioBufferCopyChannelMethods } from "./factories/wrap-audio-buffer-copy-channel-methods.js";
|
|
136
|
+
import { createWrapAudioBufferCopyChannelMethodsOutOfBounds } from "./factories/wrap-audio-buffer-copy-channel-methods-out-of-bounds.js";
|
|
137
|
+
import { createWrapAudioBufferSourceNodeStopMethodNullifiedBuffer } from "./factories/wrap-audio-buffer-source-node-stop-method-nullified-buffer.js";
|
|
138
|
+
import { createWrapChannelMergerNode } from "./factories/wrap-channel-merger-node.js";
|
|
139
|
+
import { connectNativeAudioNodeToNativeAudioNode } from "./helpers/connect-native-audio-node-to-native-audio-node.js";
|
|
140
|
+
import { disconnectNativeAudioNodeFromNativeAudioNode } from "./helpers/disconnect-native-audio-node-from-native-audio-node.js";
|
|
141
|
+
import { getFirstSample } from "./helpers/get-first-sample.js";
|
|
142
|
+
import { getNativeAudioParam } from "./helpers/get-native-audio-param.js";
|
|
143
|
+
import { insertElementInSet } from "./helpers/insert-element-in-set.js";
|
|
144
|
+
import { isDCCurve } from "./helpers/is-dc-curve.js";
|
|
145
|
+
import { isPartOfACycle } from "./helpers/is-part-of-a-cycle.js";
|
|
146
|
+
import { isPassiveAudioNode } from "./helpers/is-passive-audio-node.js";
|
|
147
|
+
import { overwriteAccessors } from "./helpers/overwrite-accessors.js";
|
|
148
|
+
import { pickElementFromSet } from "./helpers/pick-element-from-set.js";
|
|
149
|
+
import { sanitizeChannelSplitterOptions } from "./helpers/sanitize-channel-splitter-options.js";
|
|
150
|
+
import { sanitizePeriodicWaveOptions } from "./helpers/sanitize-periodic-wave-options.js";
|
|
151
|
+
import { setValueAtTimeUntilPossible } from "./helpers/set-value-at-time-until-possible.js";
|
|
152
|
+
import { testAudioBufferCopyChannelMethodsOutOfBoundsSupport } from "./helpers/test-audio-buffer-copy-channel-methods-out-of-bounds-support.js";
|
|
153
|
+
import { testAudioBufferSourceNodeStartMethodConsecutiveCallsSupport } from "./helpers/test-audio-buffer-source-node-start-method-consecutive-calls-support.js";
|
|
154
|
+
import { testAudioBufferSourceNodeStartMethodOffsetClampingSupport } from "./helpers/test-audio-buffer-source-node-start-method-offset-clamping-support.js";
|
|
155
|
+
import { testAudioBufferSourceNodeStopMethodNullifiedBufferSupport } from "./helpers/test-audio-buffer-source-node-stop-method-nullified-buffer-support.js";
|
|
156
|
+
import { testAudioScheduledSourceNodeStartMethodNegativeParametersSupport } from "./helpers/test-audio-scheduled-source-node-start-method-negative-parameters-support.js";
|
|
157
|
+
import { testAudioScheduledSourceNodeStopMethodConsecutiveCallsSupport } from "./helpers/test-audio-scheduled-source-node-stop-method-consecutive-calls-support.js";
|
|
158
|
+
import { testAudioScheduledSourceNodeStopMethodNegativeParametersSupport } from "./helpers/test-audio-scheduled-source-node-stop-method-negative-parameters-support.js";
|
|
159
|
+
import { wrapAudioBufferSourceNodeStartMethodOffsetClamping } from "./helpers/wrap-audio-buffer-source-node-start-method-offset-clamping.js";
|
|
160
|
+
import { wrapAudioScheduledSourceNodeStopMethodConsecutiveCalls } from "./helpers/wrap-audio-scheduled-source-node-stop-method-consecutive-calls.js";
|
|
161
|
+
import { wrapEventListener } from "./helpers/wrap-event-listener.js";
|
|
162
|
+
const addActiveInputConnectionToAudioNode = createAddActiveInputConnectionToAudioNode(insertElementInSet);
|
|
163
|
+
const addPassiveInputConnectionToAudioNode = createAddPassiveInputConnectionToAudioNode(insertElementInSet);
|
|
164
|
+
const deleteActiveInputConnectionToAudioNode = createDeleteActiveInputConnectionToAudioNode(pickElementFromSet);
|
|
165
|
+
const audioNodeTailTimeStore = /* @__PURE__ */ new WeakMap();
|
|
166
|
+
const getAudioNodeTailTime = createGetAudioNodeTailTime(audioNodeTailTimeStore);
|
|
167
|
+
const cacheTestResult = createCacheTestResult(/* @__PURE__ */ new Map(), /* @__PURE__ */ new WeakMap());
|
|
168
|
+
const window = createWindow();
|
|
169
|
+
const createNativeAnalyserNode = createNativeAnalyserNodeFactory(cacheTestResult, createIndexSizeError);
|
|
170
|
+
const getAudioNodeRenderer = createGetAudioNodeRenderer(getAudioNodeConnections);
|
|
171
|
+
const renderInputsOfAudioNode = createRenderInputsOfAudioNode(getAudioNodeConnections, getAudioNodeRenderer, isPartOfACycle);
|
|
172
|
+
const createAnalyserNodeRenderer = createAnalyserNodeRendererFactory(createNativeAnalyserNode, getNativeAudioNode, renderInputsOfAudioNode);
|
|
173
|
+
const getNativeContext = createGetNativeContext(CONTEXT_STORE);
|
|
174
|
+
const nativeOfflineAudioContextConstructor = createNativeOfflineAudioContextConstructor(window);
|
|
175
|
+
const isNativeOfflineAudioContext = createIsNativeOfflineAudioContext(nativeOfflineAudioContextConstructor);
|
|
176
|
+
const audioParamAudioNodeStore = /* @__PURE__ */ new WeakMap();
|
|
177
|
+
const eventTargetConstructor = createEventTargetConstructor(wrapEventListener);
|
|
178
|
+
const nativeAudioContextConstructor = createNativeAudioContextConstructor(window);
|
|
179
|
+
const isNativeAudioContext = createIsNativeAudioContext(nativeAudioContextConstructor);
|
|
180
|
+
const isNativeAudioNode = createIsNativeAudioNode(window);
|
|
181
|
+
const isNativeAudioParam = createIsNativeAudioParam(window);
|
|
182
|
+
const nativeAudioWorkletNodeConstructor = createNativeAudioWorkletNodeConstructor(window);
|
|
183
|
+
const audioNodeConstructor = createAudioNodeConstructor(createAddAudioNodeConnections(AUDIO_NODE_CONNECTIONS_STORE), createAddConnectionToAudioNode(addActiveInputConnectionToAudioNode, addPassiveInputConnectionToAudioNode, connectNativeAudioNodeToNativeAudioNode, deleteActiveInputConnectionToAudioNode, disconnectNativeAudioNodeFromNativeAudioNode, getAudioNodeConnections, getAudioNodeTailTime, getEventListenersOfAudioNode, getNativeAudioNode, insertElementInSet, isActiveAudioNode, isPartOfACycle, isPassiveAudioNode), cacheTestResult, createIncrementCycleCounterFactory(CYCLE_COUNTERS, disconnectNativeAudioNodeFromNativeAudioNode, getAudioNodeConnections, getNativeAudioNode, getNativeAudioParam, isActiveAudioNode), createIndexSizeError, createInvalidAccessError, createNotSupportedError, createDecrementCycleCounter(connectNativeAudioNodeToNativeAudioNode, CYCLE_COUNTERS, getAudioNodeConnections, getNativeAudioNode, getNativeAudioParam, getNativeContext, isActiveAudioNode, isNativeOfflineAudioContext), createDetectCycles(audioParamAudioNodeStore, getAudioNodeConnections, getValueForKey), eventTargetConstructor, getNativeContext, isNativeAudioContext, isNativeAudioNode, isNativeAudioParam, isNativeOfflineAudioContext, nativeAudioWorkletNodeConstructor);
|
|
184
|
+
const analyserNodeConstructor = createAnalyserNodeConstructor(audioNodeConstructor, createAnalyserNodeRenderer, createIndexSizeError, createNativeAnalyserNode, getNativeContext, isNativeOfflineAudioContext);
|
|
185
|
+
const audioBufferStore = /* @__PURE__ */ new WeakSet();
|
|
186
|
+
const nativeAudioBufferConstructor = createNativeAudioBufferConstructor(window);
|
|
187
|
+
const convertNumberToUnsignedLong = createConvertNumberToUnsignedLong(new Uint32Array(1));
|
|
188
|
+
const wrapAudioBufferCopyChannelMethods = createWrapAudioBufferCopyChannelMethods(convertNumberToUnsignedLong, createIndexSizeError);
|
|
189
|
+
const wrapAudioBufferCopyChannelMethodsOutOfBounds = createWrapAudioBufferCopyChannelMethodsOutOfBounds(convertNumberToUnsignedLong);
|
|
190
|
+
const audioBufferConstructor = createAudioBufferConstructor(audioBufferStore, cacheTestResult, createNotSupportedError, nativeAudioBufferConstructor, nativeOfflineAudioContextConstructor, createTestAudioBufferConstructorSupport(nativeAudioBufferConstructor), wrapAudioBufferCopyChannelMethods, wrapAudioBufferCopyChannelMethodsOutOfBounds);
|
|
191
|
+
const addSilentConnection = createAddSilentConnection(createNativeGainNode);
|
|
192
|
+
const renderInputsOfAudioParam = createRenderInputsOfAudioParam(getAudioNodeRenderer, getAudioParamConnections, isPartOfACycle);
|
|
193
|
+
const connectAudioParam = createConnectAudioParam(renderInputsOfAudioParam);
|
|
194
|
+
const createNativeAudioBufferSourceNode = createNativeAudioBufferSourceNodeFactory(addSilentConnection, cacheTestResult, testAudioBufferSourceNodeStartMethodConsecutiveCallsSupport, testAudioBufferSourceNodeStartMethodOffsetClampingSupport, testAudioBufferSourceNodeStopMethodNullifiedBufferSupport, testAudioScheduledSourceNodeStartMethodNegativeParametersSupport, testAudioScheduledSourceNodeStopMethodConsecutiveCallsSupport, testAudioScheduledSourceNodeStopMethodNegativeParametersSupport, wrapAudioBufferSourceNodeStartMethodOffsetClamping, createWrapAudioBufferSourceNodeStopMethodNullifiedBuffer(overwriteAccessors), wrapAudioScheduledSourceNodeStopMethodConsecutiveCalls);
|
|
195
|
+
const renderAutomation = createRenderAutomation(createGetAudioParamRenderer(getAudioParamConnections), renderInputsOfAudioParam);
|
|
196
|
+
const createAudioBufferSourceNodeRenderer = createAudioBufferSourceNodeRendererFactory(connectAudioParam, createNativeAudioBufferSourceNode, getNativeAudioNode, renderAutomation, renderInputsOfAudioNode);
|
|
197
|
+
const createAudioParam = createAudioParamFactory(createAddAudioParamConnections(AUDIO_PARAM_CONNECTIONS_STORE), audioParamAudioNodeStore, AUDIO_PARAM_STORE, createAudioParamRenderer, createCancelAndHoldAutomationEvent, createCancelScheduledValuesAutomationEvent, createExponentialRampToValueAutomationEvent, createLinearRampToValueAutomationEvent, createSetTargetAutomationEvent, createSetValueAutomationEvent, createSetValueCurveAutomationEvent, nativeAudioContextConstructor, setValueAtTimeUntilPossible);
|
|
198
|
+
const audioBufferSourceNodeConstructor = createAudioBufferSourceNodeConstructor(audioNodeConstructor, createAudioBufferSourceNodeRenderer, createAudioParam, createInvalidStateError, createNativeAudioBufferSourceNode, getNativeContext, isNativeOfflineAudioContext, wrapEventListener);
|
|
199
|
+
const audioDestinationNodeConstructor = createAudioDestinationNodeConstructor(audioNodeConstructor, createAudioDestinationNodeRenderer, createIndexSizeError, createInvalidStateError, createNativeAudioDestinationNodeFactory(createNativeGainNode, overwriteAccessors), getNativeContext, isNativeOfflineAudioContext, renderInputsOfAudioNode);
|
|
200
|
+
const createBiquadFilterNodeRenderer = createBiquadFilterNodeRendererFactory(connectAudioParam, createNativeBiquadFilterNode, getNativeAudioNode, renderAutomation, renderInputsOfAudioNode);
|
|
201
|
+
const setAudioNodeTailTime = createSetAudioNodeTailTime(audioNodeTailTimeStore);
|
|
202
|
+
const biquadFilterNodeConstructor = createBiquadFilterNodeConstructor(audioNodeConstructor, createAudioParam, createBiquadFilterNodeRenderer, createInvalidAccessError, createNativeBiquadFilterNode, getNativeContext, isNativeOfflineAudioContext, setAudioNodeTailTime);
|
|
203
|
+
const monitorConnections = createMonitorConnections(insertElementInSet, isNativeAudioNode);
|
|
204
|
+
const wrapChannelMergerNode = createWrapChannelMergerNode(createInvalidStateError, monitorConnections);
|
|
205
|
+
const createNativeChannelMergerNode = createNativeChannelMergerNodeFactory(nativeAudioContextConstructor, wrapChannelMergerNode);
|
|
206
|
+
const createChannelMergerNodeRenderer = createChannelMergerNodeRendererFactory(createNativeChannelMergerNode, getNativeAudioNode, renderInputsOfAudioNode);
|
|
207
|
+
const channelMergerNodeConstructor = createChannelMergerNodeConstructor(audioNodeConstructor, createChannelMergerNodeRenderer, createNativeChannelMergerNode, getNativeContext, isNativeOfflineAudioContext);
|
|
208
|
+
const createChannelSplitterNodeRenderer = createChannelSplitterNodeRendererFactory(createNativeChannelSplitterNode, getNativeAudioNode, renderInputsOfAudioNode);
|
|
209
|
+
const channelSplitterNodeConstructor = createChannelSplitterNodeConstructor(audioNodeConstructor, createChannelSplitterNodeRenderer, createNativeChannelSplitterNode, getNativeContext, isNativeOfflineAudioContext, sanitizeChannelSplitterOptions);
|
|
210
|
+
const createNativeConstantSourceNodeFaker = createNativeConstantSourceNodeFakerFactory(addSilentConnection, createNativeAudioBufferSourceNode, createNativeGainNode, monitorConnections);
|
|
211
|
+
const createNativeConstantSourceNode = createNativeConstantSourceNodeFactory(addSilentConnection, cacheTestResult, createNativeConstantSourceNodeFaker, testAudioScheduledSourceNodeStartMethodNegativeParametersSupport, testAudioScheduledSourceNodeStopMethodNegativeParametersSupport);
|
|
212
|
+
const createConstantSourceNodeRenderer = createConstantSourceNodeRendererFactory(connectAudioParam, createNativeConstantSourceNode, getNativeAudioNode, renderAutomation, renderInputsOfAudioNode);
|
|
213
|
+
const constantSourceNodeConstructor = createConstantSourceNodeConstructor(audioNodeConstructor, createAudioParam, createConstantSourceNodeRenderer, createNativeConstantSourceNode, getNativeContext, isNativeOfflineAudioContext, wrapEventListener);
|
|
214
|
+
const createNativeConvolverNode = createNativeConvolverNodeFactory(createNotSupportedError, overwriteAccessors);
|
|
215
|
+
const createConvolverNodeRenderer = createConvolverNodeRendererFactory(createNativeConvolverNode, getNativeAudioNode, renderInputsOfAudioNode);
|
|
216
|
+
const convolverNodeConstructor = createConvolverNodeConstructor(audioNodeConstructor, createConvolverNodeRenderer, createNativeConvolverNode, getNativeContext, isNativeOfflineAudioContext, setAudioNodeTailTime);
|
|
217
|
+
const createDelayNodeRenderer = createDelayNodeRendererFactory(connectAudioParam, createNativeDelayNode, getNativeAudioNode, renderAutomation, renderInputsOfAudioNode);
|
|
218
|
+
const delayNodeConstructor = createDelayNodeConstructor(audioNodeConstructor, createAudioParam, createDelayNodeRenderer, createNativeDelayNode, getNativeContext, isNativeOfflineAudioContext, setAudioNodeTailTime);
|
|
219
|
+
const createNativeDynamicsCompressorNode = createNativeDynamicsCompressorNodeFactory(createNotSupportedError);
|
|
220
|
+
const createDynamicsCompressorNodeRenderer = createDynamicsCompressorNodeRendererFactory(connectAudioParam, createNativeDynamicsCompressorNode, getNativeAudioNode, renderAutomation, renderInputsOfAudioNode);
|
|
221
|
+
const dynamicsCompressorNodeConstructor = createDynamicsCompressorNodeConstructor(audioNodeConstructor, createAudioParam, createDynamicsCompressorNodeRenderer, createNativeDynamicsCompressorNode, createNotSupportedError, getNativeContext, isNativeOfflineAudioContext, setAudioNodeTailTime);
|
|
222
|
+
const createGainNodeRenderer = createGainNodeRendererFactory(connectAudioParam, createNativeGainNode, getNativeAudioNode, renderAutomation, renderInputsOfAudioNode);
|
|
223
|
+
const gainNodeConstructor = createGainNodeConstructor(audioNodeConstructor, createAudioParam, createGainNodeRenderer, createNativeGainNode, getNativeContext, isNativeOfflineAudioContext);
|
|
224
|
+
const createNativeIIRFilterNodeFaker = createNativeIIRFilterNodeFakerFactory(createInvalidAccessError, createInvalidStateError, createNativeScriptProcessorNode, createNotSupportedError);
|
|
225
|
+
const renderNativeOfflineAudioContext = createRenderNativeOfflineAudioContext(cacheTestResult, createNativeGainNode, createNativeScriptProcessorNode, createTestOfflineAudioContextCurrentTimeSupport(createNativeGainNode, nativeOfflineAudioContextConstructor));
|
|
226
|
+
const createIIRFilterNodeRenderer = createIIRFilterNodeRendererFactory(createNativeAudioBufferSourceNode, getNativeAudioNode, nativeOfflineAudioContextConstructor, renderInputsOfAudioNode, renderNativeOfflineAudioContext);
|
|
227
|
+
const createNativeIIRFilterNode = createNativeIIRFilterNodeFactory(createNativeIIRFilterNodeFaker);
|
|
228
|
+
const iIRFilterNodeConstructor = createIIRFilterNodeConstructor(audioNodeConstructor, createNativeIIRFilterNode, createIIRFilterNodeRenderer, getNativeContext, isNativeOfflineAudioContext, setAudioNodeTailTime);
|
|
229
|
+
const createAudioListener = createAudioListenerFactory(createAudioParam, createNativeChannelMergerNode, createNativeConstantSourceNode, createNativeScriptProcessorNode, createNotSupportedError, getFirstSample, isNativeOfflineAudioContext, overwriteAccessors);
|
|
230
|
+
const unrenderedAudioWorkletNodeStore = /* @__PURE__ */ new WeakMap();
|
|
231
|
+
const minimalBaseAudioContextConstructor = createMinimalBaseAudioContextConstructor(audioDestinationNodeConstructor, createAudioListener, eventTargetConstructor, isNativeOfflineAudioContext, unrenderedAudioWorkletNodeStore, wrapEventListener);
|
|
232
|
+
const createNativeOscillatorNode = createNativeOscillatorNodeFactory(addSilentConnection, cacheTestResult, testAudioScheduledSourceNodeStartMethodNegativeParametersSupport, testAudioScheduledSourceNodeStopMethodConsecutiveCallsSupport, testAudioScheduledSourceNodeStopMethodNegativeParametersSupport, wrapAudioScheduledSourceNodeStopMethodConsecutiveCalls);
|
|
233
|
+
const createOscillatorNodeRenderer = createOscillatorNodeRendererFactory(connectAudioParam, createNativeOscillatorNode, getNativeAudioNode, renderAutomation, renderInputsOfAudioNode);
|
|
234
|
+
const oscillatorNodeConstructor = createOscillatorNodeConstructor(audioNodeConstructor, createAudioParam, createNativeOscillatorNode, createOscillatorNodeRenderer, getNativeContext, isNativeOfflineAudioContext, wrapEventListener);
|
|
235
|
+
const createConnectedNativeAudioBufferSourceNode = createConnectedNativeAudioBufferSourceNodeFactory(createNativeAudioBufferSourceNode);
|
|
236
|
+
const createNativeWaveShaperNodeFaker = createNativeWaveShaperNodeFakerFactory(createConnectedNativeAudioBufferSourceNode, createInvalidStateError, createNativeGainNode, isDCCurve, monitorConnections);
|
|
237
|
+
const createNativeWaveShaperNode = createNativeWaveShaperNodeFactory(createConnectedNativeAudioBufferSourceNode, createInvalidStateError, createNativeWaveShaperNodeFaker, isDCCurve, monitorConnections, nativeAudioContextConstructor, overwriteAccessors);
|
|
238
|
+
const createNativePannerNodeFaker = createNativePannerNodeFakerFactory(connectNativeAudioNodeToNativeAudioNode, createInvalidStateError, createNativeChannelMergerNode, createNativeGainNode, createNativeScriptProcessorNode, createNativeWaveShaperNode, createNotSupportedError, disconnectNativeAudioNodeFromNativeAudioNode, getFirstSample, monitorConnections);
|
|
239
|
+
const createNativePannerNode = createNativePannerNodeFactory(createNativePannerNodeFaker);
|
|
240
|
+
const createPannerNodeRenderer = createPannerNodeRendererFactory(connectAudioParam, createNativeChannelMergerNode, createNativeConstantSourceNode, createNativeGainNode, createNativePannerNode, getNativeAudioNode, nativeOfflineAudioContextConstructor, renderAutomation, renderInputsOfAudioNode, renderNativeOfflineAudioContext);
|
|
241
|
+
const pannerNodeConstructor = createPannerNodeConstructor(audioNodeConstructor, createAudioParam, createNativePannerNode, createPannerNodeRenderer, getNativeContext, isNativeOfflineAudioContext, setAudioNodeTailTime);
|
|
242
|
+
const createNativePeriodicWave = createNativePeriodicWaveFactory(createIndexSizeError);
|
|
243
|
+
const periodicWaveConstructor = createPeriodicWaveConstructor(createNativePeriodicWave, getNativeContext, /* @__PURE__ */ new WeakSet(), sanitizePeriodicWaveOptions);
|
|
244
|
+
const nativeStereoPannerNodeFakerFactory = createNativeStereoPannerNodeFakerFactory(createNativeChannelMergerNode, createNativeChannelSplitterNode, createNativeGainNode, createNativeWaveShaperNode, createNotSupportedError, monitorConnections);
|
|
245
|
+
const createNativeStereoPannerNode = createNativeStereoPannerNodeFactory(nativeStereoPannerNodeFakerFactory, createNotSupportedError);
|
|
246
|
+
const createStereoPannerNodeRenderer = createStereoPannerNodeRendererFactory(connectAudioParam, createNativeStereoPannerNode, getNativeAudioNode, renderAutomation, renderInputsOfAudioNode);
|
|
247
|
+
const stereoPannerNodeConstructor = createStereoPannerNodeConstructor(audioNodeConstructor, createAudioParam, createNativeStereoPannerNode, createStereoPannerNodeRenderer, getNativeContext, isNativeOfflineAudioContext);
|
|
248
|
+
const createWaveShaperNodeRenderer = createWaveShaperNodeRendererFactory(createNativeWaveShaperNode, getNativeAudioNode, renderInputsOfAudioNode);
|
|
249
|
+
const waveShaperNodeConstructor = createWaveShaperNodeConstructor(audioNodeConstructor, createInvalidStateError, createNativeWaveShaperNode, createWaveShaperNodeRenderer, getNativeContext, isNativeOfflineAudioContext, setAudioNodeTailTime);
|
|
250
|
+
const isSecureContext = createIsSecureContext(window);
|
|
251
|
+
const exposeCurrentFrameAndCurrentTime = createExposeCurrentFrameAndCurrentTime(window);
|
|
252
|
+
const backupOfflineAudioContextStore = /* @__PURE__ */ new WeakMap();
|
|
253
|
+
const getOrCreateBackupOfflineAudioContext = createGetOrCreateBackupOfflineAudioContext(backupOfflineAudioContextStore, nativeOfflineAudioContextConstructor);
|
|
254
|
+
const addAudioWorkletModule = isSecureContext ? createAddAudioWorkletModule(
|
|
255
|
+
cacheTestResult,
|
|
256
|
+
createNotSupportedError,
|
|
257
|
+
createEvaluateSource(window),
|
|
258
|
+
exposeCurrentFrameAndCurrentTime,
|
|
259
|
+
createFetchSource(createAbortError),
|
|
260
|
+
getNativeContext,
|
|
261
|
+
getOrCreateBackupOfflineAudioContext,
|
|
262
|
+
isNativeOfflineAudioContext,
|
|
263
|
+
nativeAudioWorkletNodeConstructor,
|
|
264
|
+
/* @__PURE__ */ new WeakMap(),
|
|
265
|
+
/* @__PURE__ */ new WeakMap(),
|
|
266
|
+
createTestAudioWorkletProcessorPostMessageSupport(nativeAudioWorkletNodeConstructor, nativeOfflineAudioContextConstructor),
|
|
267
|
+
// @todo window is guaranteed to be defined because isSecureContext checks that as well.
|
|
268
|
+
window
|
|
269
|
+
) : void 0;
|
|
270
|
+
const isNativeContext = createIsNativeContext(isNativeAudioContext, isNativeOfflineAudioContext);
|
|
271
|
+
const decodeAudioData = createDecodeAudioData(audioBufferStore, cacheTestResult, createDataCloneError, createEncodingError, /* @__PURE__ */ new WeakSet(), getNativeContext, isNativeContext, testAudioBufferCopyChannelMethodsOutOfBoundsSupport, testPromiseSupport, wrapAudioBufferCopyChannelMethods, wrapAudioBufferCopyChannelMethodsOutOfBounds);
|
|
272
|
+
const baseAudioContextConstructor = createBaseAudioContextConstructor(addAudioWorkletModule, analyserNodeConstructor, audioBufferConstructor, audioBufferSourceNodeConstructor, biquadFilterNodeConstructor, channelMergerNodeConstructor, channelSplitterNodeConstructor, constantSourceNodeConstructor, convolverNodeConstructor, decodeAudioData, delayNodeConstructor, dynamicsCompressorNodeConstructor, gainNodeConstructor, iIRFilterNodeConstructor, minimalBaseAudioContextConstructor, oscillatorNodeConstructor, pannerNodeConstructor, periodicWaveConstructor, stereoPannerNodeConstructor, waveShaperNodeConstructor);
|
|
273
|
+
const getUnrenderedAudioWorkletNodes = createGetUnrenderedAudioWorkletNodes(unrenderedAudioWorkletNodeStore);
|
|
274
|
+
const createNativeOfflineAudioContext = createCreateNativeOfflineAudioContext(createNotSupportedError, nativeOfflineAudioContextConstructor);
|
|
275
|
+
const startRendering = createStartRendering(audioBufferStore, cacheTestResult, getAudioNodeRenderer, getUnrenderedAudioWorkletNodes, renderNativeOfflineAudioContext, testAudioBufferCopyChannelMethodsOutOfBoundsSupport, wrapAudioBufferCopyChannelMethods, wrapAudioBufferCopyChannelMethodsOutOfBounds);
|
|
276
|
+
const offlineAudioContextConstructor = createOfflineAudioContextConstructor(baseAudioContextConstructor, cacheTestResult, createInvalidStateError, createNativeOfflineAudioContext, startRendering);
|
|
277
|
+
export {
|
|
278
|
+
analyserNodeConstructor as AnalyserNode,
|
|
279
|
+
audioBufferConstructor as AudioBuffer,
|
|
280
|
+
audioBufferSourceNodeConstructor as AudioBufferSourceNode,
|
|
281
|
+
biquadFilterNodeConstructor as BiquadFilterNode,
|
|
282
|
+
channelMergerNodeConstructor as ChannelMergerNode,
|
|
283
|
+
channelSplitterNodeConstructor as ChannelSplitterNode,
|
|
284
|
+
constantSourceNodeConstructor as ConstantSourceNode,
|
|
285
|
+
convolverNodeConstructor as ConvolverNode,
|
|
286
|
+
delayNodeConstructor as DelayNode,
|
|
287
|
+
dynamicsCompressorNodeConstructor as DynamicsCompressorNode,
|
|
288
|
+
gainNodeConstructor as GainNode,
|
|
289
|
+
iIRFilterNodeConstructor as IIRFilterNode,
|
|
290
|
+
offlineAudioContextConstructor as OfflineAudioContext,
|
|
291
|
+
oscillatorNodeConstructor as OscillatorNode,
|
|
292
|
+
pannerNodeConstructor as PannerNode,
|
|
293
|
+
periodicWaveConstructor as PeriodicWave,
|
|
294
|
+
stereoPannerNodeConstructor as StereoPannerNode,
|
|
295
|
+
waveShaperNodeConstructor as WaveShaperNode,
|
|
296
|
+
addAudioWorkletModule,
|
|
297
|
+
decodeAudioData
|
|
298
|
+
};
|
|
@@ -11,6 +11,7 @@ const LiveRecorder = react.forwardRef(
|
|
|
11
11
|
fftSize = 2048,
|
|
12
12
|
smoothingTimeConstant = 0.8,
|
|
13
13
|
showIdleState = true,
|
|
14
|
+
amplitudeScale = 1.5,
|
|
14
15
|
...props
|
|
15
16
|
}, ref) => {
|
|
16
17
|
const canvasRef = react.useRef(null);
|
|
@@ -60,7 +61,7 @@ const LiveRecorder = react.forwardRef(
|
|
|
60
61
|
for (let i = 0; i < numBars; i++) {
|
|
61
62
|
const dataIndex = Math.floor(i / numBars * bufferLength);
|
|
62
63
|
const value = dataArray[dataIndex] || 0;
|
|
63
|
-
const amplitude = Math.abs(value - 128) / 128;
|
|
64
|
+
const amplitude = Math.min(1, Math.abs(value - 128) / 128 * amplitudeScale);
|
|
64
65
|
const barHeight = Math.max(2, amplitude * height * barHeightScale);
|
|
65
66
|
const x = i * totalBarWidth;
|
|
66
67
|
const y = (height - barHeight) / 2;
|
|
@@ -90,7 +91,7 @@ const LiveRecorder = react.forwardRef(
|
|
|
90
91
|
animationRef.current = null;
|
|
91
92
|
}
|
|
92
93
|
};
|
|
93
|
-
}, [mediaRecorder, appearance, analyserRef, dataArrayRef, bufferLengthRef]);
|
|
94
|
+
}, [mediaRecorder, appearance, amplitudeScale, analyserRef, dataArrayRef, bufferLengthRef]);
|
|
94
95
|
react.useEffect(() => {
|
|
95
96
|
if (mediaRecorder || !showIdleState || !canvasRef.current) return;
|
|
96
97
|
const canvas = canvasRef.current;
|
|
@@ -9,6 +9,7 @@ const LiveRecorder = forwardRef(
|
|
|
9
9
|
fftSize = 2048,
|
|
10
10
|
smoothingTimeConstant = 0.8,
|
|
11
11
|
showIdleState = true,
|
|
12
|
+
amplitudeScale = 1.5,
|
|
12
13
|
...props
|
|
13
14
|
}, ref) => {
|
|
14
15
|
const canvasRef = useRef(null);
|
|
@@ -58,7 +59,7 @@ const LiveRecorder = forwardRef(
|
|
|
58
59
|
for (let i = 0; i < numBars; i++) {
|
|
59
60
|
const dataIndex = Math.floor(i / numBars * bufferLength);
|
|
60
61
|
const value = dataArray[dataIndex] || 0;
|
|
61
|
-
const amplitude = Math.abs(value - 128) / 128;
|
|
62
|
+
const amplitude = Math.min(1, Math.abs(value - 128) / 128 * amplitudeScale);
|
|
62
63
|
const barHeight = Math.max(2, amplitude * height * barHeightScale);
|
|
63
64
|
const x = i * totalBarWidth;
|
|
64
65
|
const y = (height - barHeight) / 2;
|
|
@@ -88,7 +89,7 @@ const LiveRecorder = forwardRef(
|
|
|
88
89
|
animationRef.current = null;
|
|
89
90
|
}
|
|
90
91
|
};
|
|
91
|
-
}, [mediaRecorder, appearance, analyserRef, dataArrayRef, bufferLengthRef]);
|
|
92
|
+
}, [mediaRecorder, appearance, amplitudeScale, analyserRef, dataArrayRef, bufferLengthRef]);
|
|
92
93
|
useEffect(() => {
|
|
93
94
|
if (mediaRecorder || !showIdleState || !canvasRef.current) return;
|
|
94
95
|
const canvas = canvasRef.current;
|
|
@@ -3,7 +3,13 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const react = require("react");
|
|
4
4
|
const useAudioAnalyser = require("../use-audio-analyser.cjs");
|
|
5
5
|
function useRecordingAmplitudes(options) {
|
|
6
|
-
const {
|
|
6
|
+
const {
|
|
7
|
+
mediaRecorder,
|
|
8
|
+
fftSize = 2048,
|
|
9
|
+
smoothingTimeConstant = 0.4,
|
|
10
|
+
sampleInterval = 50,
|
|
11
|
+
amplitudeScale = 1.5
|
|
12
|
+
} = options;
|
|
7
13
|
const amplitudeDataRef = react.useRef([]);
|
|
8
14
|
const listenersRef = react.useRef(/* @__PURE__ */ new Set());
|
|
9
15
|
const samplingIntervalRef = react.useRef(null);
|
|
@@ -51,7 +57,7 @@ function useRecordingAmplitudes(options) {
|
|
|
51
57
|
sum += normalized * normalized;
|
|
52
58
|
}
|
|
53
59
|
const rms = Math.sqrt(sum / bufferLength);
|
|
54
|
-
const amplitude = Math.min(1, rms *
|
|
60
|
+
const amplitude = Math.min(1, rms * amplitudeScale);
|
|
55
61
|
amplitudeDataRef.current.push(amplitude);
|
|
56
62
|
notifyListeners();
|
|
57
63
|
};
|
|
@@ -79,7 +85,7 @@ function useRecordingAmplitudes(options) {
|
|
|
79
85
|
mediaRecorder.removeEventListener("resume", handleResume);
|
|
80
86
|
stopSampling();
|
|
81
87
|
};
|
|
82
|
-
}, [mediaRecorder, sampleInterval, analyserRef, dataArrayRef, bufferLengthRef, notifyListeners]);
|
|
88
|
+
}, [mediaRecorder, sampleInterval, amplitudeScale, analyserRef, dataArrayRef, bufferLengthRef, notifyListeners]);
|
|
83
89
|
return {
|
|
84
90
|
amplitudes,
|
|
85
91
|
audioContext: audioContextRef.current,
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { useRef, useCallback, useSyncExternalStore, useEffect } from "react";
|
|
2
2
|
import { useAudioAnalyser } from "../use-audio-analyser.js";
|
|
3
3
|
function useRecordingAmplitudes(options) {
|
|
4
|
-
const {
|
|
4
|
+
const {
|
|
5
|
+
mediaRecorder,
|
|
6
|
+
fftSize = 2048,
|
|
7
|
+
smoothingTimeConstant = 0.4,
|
|
8
|
+
sampleInterval = 50,
|
|
9
|
+
amplitudeScale = 1.5
|
|
10
|
+
} = options;
|
|
5
11
|
const amplitudeDataRef = useRef([]);
|
|
6
12
|
const listenersRef = useRef(/* @__PURE__ */ new Set());
|
|
7
13
|
const samplingIntervalRef = useRef(null);
|
|
@@ -49,7 +55,7 @@ function useRecordingAmplitudes(options) {
|
|
|
49
55
|
sum += normalized * normalized;
|
|
50
56
|
}
|
|
51
57
|
const rms = Math.sqrt(sum / bufferLength);
|
|
52
|
-
const amplitude = Math.min(1, rms *
|
|
58
|
+
const amplitude = Math.min(1, rms * amplitudeScale);
|
|
53
59
|
amplitudeDataRef.current.push(amplitude);
|
|
54
60
|
notifyListeners();
|
|
55
61
|
};
|
|
@@ -77,7 +83,7 @@ function useRecordingAmplitudes(options) {
|
|
|
77
83
|
mediaRecorder.removeEventListener("resume", handleResume);
|
|
78
84
|
stopSampling();
|
|
79
85
|
};
|
|
80
|
-
}, [mediaRecorder, sampleInterval, analyserRef, dataArrayRef, bufferLengthRef, notifyListeners]);
|
|
86
|
+
}, [mediaRecorder, sampleInterval, amplitudeScale, analyserRef, dataArrayRef, bufferLengthRef, notifyListeners]);
|
|
81
87
|
return {
|
|
82
88
|
amplitudes,
|
|
83
89
|
audioContext: audioContextRef.current,
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const module$1 = require("../node_modules/standardized-audio-context/build/es2019/module.cjs");
|
|
3
4
|
async function decodeAudioBlob(blob, sampleCount) {
|
|
4
|
-
const audioContext = new AudioContext();
|
|
5
5
|
const arrayBuffer = await blob.arrayBuffer();
|
|
6
6
|
if (arrayBuffer.byteLength === 0) {
|
|
7
|
-
await audioContext.close();
|
|
8
7
|
throw new Error("Audio blob is empty");
|
|
9
8
|
}
|
|
9
|
+
const offlineContext = new module$1.OfflineAudioContext({ length: 1, sampleRate: 44100 });
|
|
10
10
|
let audioBuffer;
|
|
11
11
|
try {
|
|
12
|
-
audioBuffer = await
|
|
12
|
+
audioBuffer = await offlineContext.decodeAudioData(arrayBuffer);
|
|
13
13
|
} catch {
|
|
14
|
-
await audioContext.close();
|
|
15
14
|
throw new Error(
|
|
16
15
|
`Unable to decode audio data (type: ${blob.type}, size: ${blob.size} bytes). This may be due to an unsupported audio format or corrupted data.`
|
|
17
16
|
);
|
|
@@ -29,7 +28,6 @@ async function decodeAudioBlob(blob, sampleCount) {
|
|
|
29
28
|
}
|
|
30
29
|
const maxPeak = Math.max(...peaks);
|
|
31
30
|
const normalizedPeaks = maxPeak > 0 ? peaks.map((p) => p / maxPeak) : peaks;
|
|
32
|
-
await audioContext.close();
|
|
33
31
|
return normalizedPeaks;
|
|
34
32
|
}
|
|
35
33
|
const audioDataCache = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
+
import { OfflineAudioContext as offlineAudioContextConstructor } from "../node_modules/standardized-audio-context/build/es2019/module.js";
|
|
1
2
|
async function decodeAudioBlob(blob, sampleCount) {
|
|
2
|
-
const audioContext = new AudioContext();
|
|
3
3
|
const arrayBuffer = await blob.arrayBuffer();
|
|
4
4
|
if (arrayBuffer.byteLength === 0) {
|
|
5
|
-
await audioContext.close();
|
|
6
5
|
throw new Error("Audio blob is empty");
|
|
7
6
|
}
|
|
7
|
+
const offlineContext = new offlineAudioContextConstructor({ length: 1, sampleRate: 44100 });
|
|
8
8
|
let audioBuffer;
|
|
9
9
|
try {
|
|
10
|
-
audioBuffer = await
|
|
10
|
+
audioBuffer = await offlineContext.decodeAudioData(arrayBuffer);
|
|
11
11
|
} catch {
|
|
12
|
-
await audioContext.close();
|
|
13
12
|
throw new Error(
|
|
14
13
|
`Unable to decode audio data (type: ${blob.type}, size: ${blob.size} bytes). This may be due to an unsupported audio format or corrupted data.`
|
|
15
14
|
);
|
|
@@ -27,7 +26,6 @@ async function decodeAudioBlob(blob, sampleCount) {
|
|
|
27
26
|
}
|
|
28
27
|
const maxPeak = Math.max(...peaks);
|
|
29
28
|
const normalizedPeaks = maxPeak > 0 ? peaks.map((p) => p / maxPeak) : peaks;
|
|
30
|
-
await audioContext.close();
|
|
31
29
|
return normalizedPeaks;
|
|
32
30
|
}
|
|
33
31
|
const audioDataCache = /* @__PURE__ */ new WeakMap();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-audio-wavekit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"license": "CC0-1.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"overlayscrollbars": "^2.13.0",
|
|
72
|
-
"overlayscrollbars-react": "^0.5.6"
|
|
72
|
+
"overlayscrollbars-react": "^0.5.6",
|
|
73
|
+
"standardized-audio-context": "^25.3.77"
|
|
73
74
|
}
|
|
74
75
|
}
|