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,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const nativeAudioNodeFaker = require("../guards/native-audio-node-faker.cjs");
|
|
4
|
+
const isOwnedByContext = require("../helpers/is-owned-by-context.cjs");
|
|
5
|
+
const createStereoPannerNodeRendererFactory = (connectAudioParam, createNativeStereoPannerNode, getNativeAudioNode, renderAutomation, renderInputsOfAudioNode) => {
|
|
6
|
+
return () => {
|
|
7
|
+
const renderedNativeStereoPannerNodes = /* @__PURE__ */ new WeakMap();
|
|
8
|
+
const createStereoPannerNode = async (proxy, nativeOfflineAudioContext) => {
|
|
9
|
+
let nativeStereoPannerNode = getNativeAudioNode(proxy);
|
|
10
|
+
const nativeStereoPannerNodeIsOwnedByContext = isOwnedByContext.isOwnedByContext(nativeStereoPannerNode, nativeOfflineAudioContext);
|
|
11
|
+
if (!nativeStereoPannerNodeIsOwnedByContext) {
|
|
12
|
+
const options = {
|
|
13
|
+
channelCount: nativeStereoPannerNode.channelCount,
|
|
14
|
+
channelCountMode: nativeStereoPannerNode.channelCountMode,
|
|
15
|
+
channelInterpretation: nativeStereoPannerNode.channelInterpretation,
|
|
16
|
+
pan: nativeStereoPannerNode.pan.value
|
|
17
|
+
};
|
|
18
|
+
nativeStereoPannerNode = createNativeStereoPannerNode(nativeOfflineAudioContext, options);
|
|
19
|
+
}
|
|
20
|
+
renderedNativeStereoPannerNodes.set(nativeOfflineAudioContext, nativeStereoPannerNode);
|
|
21
|
+
if (!nativeStereoPannerNodeIsOwnedByContext) {
|
|
22
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.pan, nativeStereoPannerNode.pan);
|
|
23
|
+
} else {
|
|
24
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.pan, nativeStereoPannerNode.pan);
|
|
25
|
+
}
|
|
26
|
+
if (nativeAudioNodeFaker.isNativeAudioNodeFaker(nativeStereoPannerNode)) {
|
|
27
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeStereoPannerNode.inputs[0]);
|
|
28
|
+
} else {
|
|
29
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeStereoPannerNode);
|
|
30
|
+
}
|
|
31
|
+
return nativeStereoPannerNode;
|
|
32
|
+
};
|
|
33
|
+
return {
|
|
34
|
+
render(proxy, nativeOfflineAudioContext) {
|
|
35
|
+
const renderedNativeStereoPannerNode = renderedNativeStereoPannerNodes.get(nativeOfflineAudioContext);
|
|
36
|
+
if (renderedNativeStereoPannerNode !== void 0) {
|
|
37
|
+
return Promise.resolve(renderedNativeStereoPannerNode);
|
|
38
|
+
}
|
|
39
|
+
return createStereoPannerNode(proxy, nativeOfflineAudioContext);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
exports.createStereoPannerNodeRendererFactory = createStereoPannerNodeRendererFactory;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { isNativeAudioNodeFaker } from "../guards/native-audio-node-faker.js";
|
|
2
|
+
import { isOwnedByContext } from "../helpers/is-owned-by-context.js";
|
|
3
|
+
const createStereoPannerNodeRendererFactory = (connectAudioParam, createNativeStereoPannerNode, getNativeAudioNode, renderAutomation, renderInputsOfAudioNode) => {
|
|
4
|
+
return () => {
|
|
5
|
+
const renderedNativeStereoPannerNodes = /* @__PURE__ */ new WeakMap();
|
|
6
|
+
const createStereoPannerNode = async (proxy, nativeOfflineAudioContext) => {
|
|
7
|
+
let nativeStereoPannerNode = getNativeAudioNode(proxy);
|
|
8
|
+
const nativeStereoPannerNodeIsOwnedByContext = isOwnedByContext(nativeStereoPannerNode, nativeOfflineAudioContext);
|
|
9
|
+
if (!nativeStereoPannerNodeIsOwnedByContext) {
|
|
10
|
+
const options = {
|
|
11
|
+
channelCount: nativeStereoPannerNode.channelCount,
|
|
12
|
+
channelCountMode: nativeStereoPannerNode.channelCountMode,
|
|
13
|
+
channelInterpretation: nativeStereoPannerNode.channelInterpretation,
|
|
14
|
+
pan: nativeStereoPannerNode.pan.value
|
|
15
|
+
};
|
|
16
|
+
nativeStereoPannerNode = createNativeStereoPannerNode(nativeOfflineAudioContext, options);
|
|
17
|
+
}
|
|
18
|
+
renderedNativeStereoPannerNodes.set(nativeOfflineAudioContext, nativeStereoPannerNode);
|
|
19
|
+
if (!nativeStereoPannerNodeIsOwnedByContext) {
|
|
20
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.pan, nativeStereoPannerNode.pan);
|
|
21
|
+
} else {
|
|
22
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.pan, nativeStereoPannerNode.pan);
|
|
23
|
+
}
|
|
24
|
+
if (isNativeAudioNodeFaker(nativeStereoPannerNode)) {
|
|
25
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeStereoPannerNode.inputs[0]);
|
|
26
|
+
} else {
|
|
27
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeStereoPannerNode);
|
|
28
|
+
}
|
|
29
|
+
return nativeStereoPannerNode;
|
|
30
|
+
};
|
|
31
|
+
return {
|
|
32
|
+
render(proxy, nativeOfflineAudioContext) {
|
|
33
|
+
const renderedNativeStereoPannerNode = renderedNativeStereoPannerNodes.get(nativeOfflineAudioContext);
|
|
34
|
+
if (renderedNativeStereoPannerNode !== void 0) {
|
|
35
|
+
return Promise.resolve(renderedNativeStereoPannerNode);
|
|
36
|
+
}
|
|
37
|
+
return createStereoPannerNode(proxy, nativeOfflineAudioContext);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
createStereoPannerNodeRendererFactory
|
|
44
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createTestAudioBufferConstructorSupport = (nativeAudioBufferConstructor) => {
|
|
4
|
+
return () => {
|
|
5
|
+
if (nativeAudioBufferConstructor === null) {
|
|
6
|
+
return false;
|
|
7
|
+
}
|
|
8
|
+
try {
|
|
9
|
+
new nativeAudioBufferConstructor({ length: 1, sampleRate: 44100 });
|
|
10
|
+
} catch {
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
return true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
exports.createTestAudioBufferConstructorSupport = createTestAudioBufferConstructorSupport;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const createTestAudioBufferConstructorSupport = (nativeAudioBufferConstructor) => {
|
|
2
|
+
return () => {
|
|
3
|
+
if (nativeAudioBufferConstructor === null) {
|
|
4
|
+
return false;
|
|
5
|
+
}
|
|
6
|
+
try {
|
|
7
|
+
new nativeAudioBufferConstructor({ length: 1, sampleRate: 44100 });
|
|
8
|
+
} catch {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
return true;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
createTestAudioBufferConstructorSupport
|
|
16
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createTestAudioWorkletProcessorPostMessageSupport = (nativeAudioWorkletNodeConstructor, nativeOfflineAudioContextConstructor) => {
|
|
4
|
+
return async () => {
|
|
5
|
+
if (nativeAudioWorkletNodeConstructor === null) {
|
|
6
|
+
return true;
|
|
7
|
+
}
|
|
8
|
+
if (nativeOfflineAudioContextConstructor === null) {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
const blob = new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'], {
|
|
12
|
+
type: "application/javascript; charset=utf-8"
|
|
13
|
+
});
|
|
14
|
+
const offlineAudioContext = new nativeOfflineAudioContextConstructor(1, 128, 44100);
|
|
15
|
+
const url = URL.createObjectURL(blob);
|
|
16
|
+
let isEmittingMessageEvents = false;
|
|
17
|
+
let isEmittingProcessorErrorEvents = false;
|
|
18
|
+
try {
|
|
19
|
+
await offlineAudioContext.audioWorklet.addModule(url);
|
|
20
|
+
const audioWorkletNode = new nativeAudioWorkletNodeConstructor(offlineAudioContext, "a", { numberOfOutputs: 0 });
|
|
21
|
+
const oscillator = offlineAudioContext.createOscillator();
|
|
22
|
+
audioWorkletNode.port.onmessage = () => isEmittingMessageEvents = true;
|
|
23
|
+
audioWorkletNode.onprocessorerror = () => isEmittingProcessorErrorEvents = true;
|
|
24
|
+
oscillator.connect(audioWorkletNode);
|
|
25
|
+
oscillator.start(0);
|
|
26
|
+
await offlineAudioContext.startRendering();
|
|
27
|
+
await new Promise((resolve) => setTimeout(resolve));
|
|
28
|
+
} catch {
|
|
29
|
+
} finally {
|
|
30
|
+
URL.revokeObjectURL(url);
|
|
31
|
+
}
|
|
32
|
+
return isEmittingMessageEvents && !isEmittingProcessorErrorEvents;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
exports.createTestAudioWorkletProcessorPostMessageSupport = createTestAudioWorkletProcessorPostMessageSupport;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const createTestAudioWorkletProcessorPostMessageSupport = (nativeAudioWorkletNodeConstructor, nativeOfflineAudioContextConstructor) => {
|
|
2
|
+
return async () => {
|
|
3
|
+
if (nativeAudioWorkletNodeConstructor === null) {
|
|
4
|
+
return true;
|
|
5
|
+
}
|
|
6
|
+
if (nativeOfflineAudioContextConstructor === null) {
|
|
7
|
+
return false;
|
|
8
|
+
}
|
|
9
|
+
const blob = new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'], {
|
|
10
|
+
type: "application/javascript; charset=utf-8"
|
|
11
|
+
});
|
|
12
|
+
const offlineAudioContext = new nativeOfflineAudioContextConstructor(1, 128, 44100);
|
|
13
|
+
const url = URL.createObjectURL(blob);
|
|
14
|
+
let isEmittingMessageEvents = false;
|
|
15
|
+
let isEmittingProcessorErrorEvents = false;
|
|
16
|
+
try {
|
|
17
|
+
await offlineAudioContext.audioWorklet.addModule(url);
|
|
18
|
+
const audioWorkletNode = new nativeAudioWorkletNodeConstructor(offlineAudioContext, "a", { numberOfOutputs: 0 });
|
|
19
|
+
const oscillator = offlineAudioContext.createOscillator();
|
|
20
|
+
audioWorkletNode.port.onmessage = () => isEmittingMessageEvents = true;
|
|
21
|
+
audioWorkletNode.onprocessorerror = () => isEmittingProcessorErrorEvents = true;
|
|
22
|
+
oscillator.connect(audioWorkletNode);
|
|
23
|
+
oscillator.start(0);
|
|
24
|
+
await offlineAudioContext.startRendering();
|
|
25
|
+
await new Promise((resolve) => setTimeout(resolve));
|
|
26
|
+
} catch {
|
|
27
|
+
} finally {
|
|
28
|
+
URL.revokeObjectURL(url);
|
|
29
|
+
}
|
|
30
|
+
return isEmittingMessageEvents && !isEmittingProcessorErrorEvents;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
createTestAudioWorkletProcessorPostMessageSupport
|
|
35
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createTestOfflineAudioContextCurrentTimeSupport = (createNativeGainNode, nativeOfflineAudioContextConstructor) => {
|
|
4
|
+
return () => {
|
|
5
|
+
if (nativeOfflineAudioContextConstructor === null) {
|
|
6
|
+
return Promise.resolve(false);
|
|
7
|
+
}
|
|
8
|
+
const nativeOfflineAudioContext = new nativeOfflineAudioContextConstructor(1, 1, 44100);
|
|
9
|
+
const gainNode = createNativeGainNode(nativeOfflineAudioContext, {
|
|
10
|
+
channelCount: 1,
|
|
11
|
+
channelCountMode: "explicit",
|
|
12
|
+
channelInterpretation: "discrete",
|
|
13
|
+
gain: 0
|
|
14
|
+
});
|
|
15
|
+
return new Promise((resolve) => {
|
|
16
|
+
nativeOfflineAudioContext.oncomplete = () => {
|
|
17
|
+
gainNode.disconnect();
|
|
18
|
+
resolve(nativeOfflineAudioContext.currentTime !== 0);
|
|
19
|
+
};
|
|
20
|
+
nativeOfflineAudioContext.startRendering();
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
exports.createTestOfflineAudioContextCurrentTimeSupport = createTestOfflineAudioContextCurrentTimeSupport;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const createTestOfflineAudioContextCurrentTimeSupport = (createNativeGainNode, nativeOfflineAudioContextConstructor) => {
|
|
2
|
+
return () => {
|
|
3
|
+
if (nativeOfflineAudioContextConstructor === null) {
|
|
4
|
+
return Promise.resolve(false);
|
|
5
|
+
}
|
|
6
|
+
const nativeOfflineAudioContext = new nativeOfflineAudioContextConstructor(1, 1, 44100);
|
|
7
|
+
const gainNode = createNativeGainNode(nativeOfflineAudioContext, {
|
|
8
|
+
channelCount: 1,
|
|
9
|
+
channelCountMode: "explicit",
|
|
10
|
+
channelInterpretation: "discrete",
|
|
11
|
+
gain: 0
|
|
12
|
+
});
|
|
13
|
+
return new Promise((resolve) => {
|
|
14
|
+
nativeOfflineAudioContext.oncomplete = () => {
|
|
15
|
+
gainNode.disconnect();
|
|
16
|
+
resolve(nativeOfflineAudioContext.currentTime !== 0);
|
|
17
|
+
};
|
|
18
|
+
nativeOfflineAudioContext.startRendering();
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
createTestOfflineAudioContextCurrentTimeSupport
|
|
24
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const DEFAULT_OPTIONS = {
|
|
4
|
+
channelCount: 2,
|
|
5
|
+
channelCountMode: "max",
|
|
6
|
+
channelInterpretation: "speakers",
|
|
7
|
+
curve: null,
|
|
8
|
+
oversample: "none"
|
|
9
|
+
};
|
|
10
|
+
const createWaveShaperNodeConstructor = (audioNodeConstructor, createInvalidStateError, createNativeWaveShaperNode, createWaveShaperNodeRenderer, getNativeContext, isNativeOfflineAudioContext, setAudioNodeTailTime) => {
|
|
11
|
+
return class WaveShaperNode extends audioNodeConstructor {
|
|
12
|
+
constructor(context, options) {
|
|
13
|
+
const nativeContext = getNativeContext(context);
|
|
14
|
+
const mergedOptions = { ...DEFAULT_OPTIONS, ...options };
|
|
15
|
+
const nativeWaveShaperNode = createNativeWaveShaperNode(nativeContext, mergedOptions);
|
|
16
|
+
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
17
|
+
const waveShaperNodeRenderer = isOffline ? createWaveShaperNodeRenderer() : null;
|
|
18
|
+
super(context, true, nativeWaveShaperNode, waveShaperNodeRenderer);
|
|
19
|
+
this._isCurveNullified = false;
|
|
20
|
+
this._nativeWaveShaperNode = nativeWaveShaperNode;
|
|
21
|
+
setAudioNodeTailTime(this, 1);
|
|
22
|
+
}
|
|
23
|
+
get curve() {
|
|
24
|
+
if (this._isCurveNullified) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return this._nativeWaveShaperNode.curve;
|
|
28
|
+
}
|
|
29
|
+
set curve(value) {
|
|
30
|
+
if (value === null) {
|
|
31
|
+
this._isCurveNullified = true;
|
|
32
|
+
this._nativeWaveShaperNode.curve = new Float32Array([0, 0]);
|
|
33
|
+
} else {
|
|
34
|
+
if (value.length < 2) {
|
|
35
|
+
throw createInvalidStateError();
|
|
36
|
+
}
|
|
37
|
+
this._isCurveNullified = false;
|
|
38
|
+
this._nativeWaveShaperNode.curve = value;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
get oversample() {
|
|
42
|
+
return this._nativeWaveShaperNode.oversample;
|
|
43
|
+
}
|
|
44
|
+
set oversample(value) {
|
|
45
|
+
this._nativeWaveShaperNode.oversample = value;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
exports.createWaveShaperNodeConstructor = createWaveShaperNodeConstructor;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const DEFAULT_OPTIONS = {
|
|
2
|
+
channelCount: 2,
|
|
3
|
+
channelCountMode: "max",
|
|
4
|
+
channelInterpretation: "speakers",
|
|
5
|
+
curve: null,
|
|
6
|
+
oversample: "none"
|
|
7
|
+
};
|
|
8
|
+
const createWaveShaperNodeConstructor = (audioNodeConstructor, createInvalidStateError, createNativeWaveShaperNode, createWaveShaperNodeRenderer, getNativeContext, isNativeOfflineAudioContext, setAudioNodeTailTime) => {
|
|
9
|
+
return class WaveShaperNode extends audioNodeConstructor {
|
|
10
|
+
constructor(context, options) {
|
|
11
|
+
const nativeContext = getNativeContext(context);
|
|
12
|
+
const mergedOptions = { ...DEFAULT_OPTIONS, ...options };
|
|
13
|
+
const nativeWaveShaperNode = createNativeWaveShaperNode(nativeContext, mergedOptions);
|
|
14
|
+
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
15
|
+
const waveShaperNodeRenderer = isOffline ? createWaveShaperNodeRenderer() : null;
|
|
16
|
+
super(context, true, nativeWaveShaperNode, waveShaperNodeRenderer);
|
|
17
|
+
this._isCurveNullified = false;
|
|
18
|
+
this._nativeWaveShaperNode = nativeWaveShaperNode;
|
|
19
|
+
setAudioNodeTailTime(this, 1);
|
|
20
|
+
}
|
|
21
|
+
get curve() {
|
|
22
|
+
if (this._isCurveNullified) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return this._nativeWaveShaperNode.curve;
|
|
26
|
+
}
|
|
27
|
+
set curve(value) {
|
|
28
|
+
if (value === null) {
|
|
29
|
+
this._isCurveNullified = true;
|
|
30
|
+
this._nativeWaveShaperNode.curve = new Float32Array([0, 0]);
|
|
31
|
+
} else {
|
|
32
|
+
if (value.length < 2) {
|
|
33
|
+
throw createInvalidStateError();
|
|
34
|
+
}
|
|
35
|
+
this._isCurveNullified = false;
|
|
36
|
+
this._nativeWaveShaperNode.curve = value;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
get oversample() {
|
|
40
|
+
return this._nativeWaveShaperNode.oversample;
|
|
41
|
+
}
|
|
42
|
+
set oversample(value) {
|
|
43
|
+
this._nativeWaveShaperNode.oversample = value;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
createWaveShaperNodeConstructor
|
|
49
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const nativeAudioNodeFaker = require("../guards/native-audio-node-faker.cjs");
|
|
4
|
+
const isOwnedByContext = require("../helpers/is-owned-by-context.cjs");
|
|
5
|
+
const createWaveShaperNodeRendererFactory = (createNativeWaveShaperNode, getNativeAudioNode, renderInputsOfAudioNode) => {
|
|
6
|
+
return () => {
|
|
7
|
+
const renderedNativeWaveShaperNodes = /* @__PURE__ */ new WeakMap();
|
|
8
|
+
const createWaveShaperNode = async (proxy, nativeOfflineAudioContext) => {
|
|
9
|
+
let nativeWaveShaperNode = getNativeAudioNode(proxy);
|
|
10
|
+
const nativeWaveShaperNodeIsOwnedByContext = isOwnedByContext.isOwnedByContext(nativeWaveShaperNode, nativeOfflineAudioContext);
|
|
11
|
+
if (!nativeWaveShaperNodeIsOwnedByContext) {
|
|
12
|
+
const options = {
|
|
13
|
+
channelCount: nativeWaveShaperNode.channelCount,
|
|
14
|
+
channelCountMode: nativeWaveShaperNode.channelCountMode,
|
|
15
|
+
channelInterpretation: nativeWaveShaperNode.channelInterpretation,
|
|
16
|
+
curve: nativeWaveShaperNode.curve,
|
|
17
|
+
oversample: nativeWaveShaperNode.oversample
|
|
18
|
+
};
|
|
19
|
+
nativeWaveShaperNode = createNativeWaveShaperNode(nativeOfflineAudioContext, options);
|
|
20
|
+
}
|
|
21
|
+
renderedNativeWaveShaperNodes.set(nativeOfflineAudioContext, nativeWaveShaperNode);
|
|
22
|
+
if (nativeAudioNodeFaker.isNativeAudioNodeFaker(nativeWaveShaperNode)) {
|
|
23
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeWaveShaperNode.inputs[0]);
|
|
24
|
+
} else {
|
|
25
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeWaveShaperNode);
|
|
26
|
+
}
|
|
27
|
+
return nativeWaveShaperNode;
|
|
28
|
+
};
|
|
29
|
+
return {
|
|
30
|
+
render(proxy, nativeOfflineAudioContext) {
|
|
31
|
+
const renderedNativeWaveShaperNode = renderedNativeWaveShaperNodes.get(nativeOfflineAudioContext);
|
|
32
|
+
if (renderedNativeWaveShaperNode !== void 0) {
|
|
33
|
+
return Promise.resolve(renderedNativeWaveShaperNode);
|
|
34
|
+
}
|
|
35
|
+
return createWaveShaperNode(proxy, nativeOfflineAudioContext);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
exports.createWaveShaperNodeRendererFactory = createWaveShaperNodeRendererFactory;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { isNativeAudioNodeFaker } from "../guards/native-audio-node-faker.js";
|
|
2
|
+
import { isOwnedByContext } from "../helpers/is-owned-by-context.js";
|
|
3
|
+
const createWaveShaperNodeRendererFactory = (createNativeWaveShaperNode, getNativeAudioNode, renderInputsOfAudioNode) => {
|
|
4
|
+
return () => {
|
|
5
|
+
const renderedNativeWaveShaperNodes = /* @__PURE__ */ new WeakMap();
|
|
6
|
+
const createWaveShaperNode = async (proxy, nativeOfflineAudioContext) => {
|
|
7
|
+
let nativeWaveShaperNode = getNativeAudioNode(proxy);
|
|
8
|
+
const nativeWaveShaperNodeIsOwnedByContext = isOwnedByContext(nativeWaveShaperNode, nativeOfflineAudioContext);
|
|
9
|
+
if (!nativeWaveShaperNodeIsOwnedByContext) {
|
|
10
|
+
const options = {
|
|
11
|
+
channelCount: nativeWaveShaperNode.channelCount,
|
|
12
|
+
channelCountMode: nativeWaveShaperNode.channelCountMode,
|
|
13
|
+
channelInterpretation: nativeWaveShaperNode.channelInterpretation,
|
|
14
|
+
curve: nativeWaveShaperNode.curve,
|
|
15
|
+
oversample: nativeWaveShaperNode.oversample
|
|
16
|
+
};
|
|
17
|
+
nativeWaveShaperNode = createNativeWaveShaperNode(nativeOfflineAudioContext, options);
|
|
18
|
+
}
|
|
19
|
+
renderedNativeWaveShaperNodes.set(nativeOfflineAudioContext, nativeWaveShaperNode);
|
|
20
|
+
if (isNativeAudioNodeFaker(nativeWaveShaperNode)) {
|
|
21
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeWaveShaperNode.inputs[0]);
|
|
22
|
+
} else {
|
|
23
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeWaveShaperNode);
|
|
24
|
+
}
|
|
25
|
+
return nativeWaveShaperNode;
|
|
26
|
+
};
|
|
27
|
+
return {
|
|
28
|
+
render(proxy, nativeOfflineAudioContext) {
|
|
29
|
+
const renderedNativeWaveShaperNode = renderedNativeWaveShaperNodes.get(nativeOfflineAudioContext);
|
|
30
|
+
if (renderedNativeWaveShaperNode !== void 0) {
|
|
31
|
+
return Promise.resolve(renderedNativeWaveShaperNode);
|
|
32
|
+
}
|
|
33
|
+
return createWaveShaperNode(proxy, nativeOfflineAudioContext);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
createWaveShaperNodeRendererFactory
|
|
40
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createWrapAudioBufferCopyChannelMethodsOutOfBounds = (convertNumberToUnsignedLong) => {
|
|
4
|
+
return (audioBuffer) => {
|
|
5
|
+
audioBuffer.copyFromChannel = /* @__PURE__ */ ((copyFromChannel) => {
|
|
6
|
+
return (destination, channelNumberAsNumber, bufferOffsetAsNumber = 0) => {
|
|
7
|
+
const bufferOffset = convertNumberToUnsignedLong(bufferOffsetAsNumber);
|
|
8
|
+
const channelNumber = convertNumberToUnsignedLong(channelNumberAsNumber);
|
|
9
|
+
if (bufferOffset < audioBuffer.length) {
|
|
10
|
+
return copyFromChannel.call(audioBuffer, destination, channelNumber, bufferOffset);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
})(audioBuffer.copyFromChannel);
|
|
14
|
+
audioBuffer.copyToChannel = /* @__PURE__ */ ((copyToChannel) => {
|
|
15
|
+
return (source, channelNumberAsNumber, bufferOffsetAsNumber = 0) => {
|
|
16
|
+
const bufferOffset = convertNumberToUnsignedLong(bufferOffsetAsNumber);
|
|
17
|
+
const channelNumber = convertNumberToUnsignedLong(channelNumberAsNumber);
|
|
18
|
+
if (bufferOffset < audioBuffer.length) {
|
|
19
|
+
return copyToChannel.call(audioBuffer, source, channelNumber, bufferOffset);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
})(audioBuffer.copyToChannel);
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
exports.createWrapAudioBufferCopyChannelMethodsOutOfBounds = createWrapAudioBufferCopyChannelMethodsOutOfBounds;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const createWrapAudioBufferCopyChannelMethodsOutOfBounds = (convertNumberToUnsignedLong) => {
|
|
2
|
+
return (audioBuffer) => {
|
|
3
|
+
audioBuffer.copyFromChannel = /* @__PURE__ */ ((copyFromChannel) => {
|
|
4
|
+
return (destination, channelNumberAsNumber, bufferOffsetAsNumber = 0) => {
|
|
5
|
+
const bufferOffset = convertNumberToUnsignedLong(bufferOffsetAsNumber);
|
|
6
|
+
const channelNumber = convertNumberToUnsignedLong(channelNumberAsNumber);
|
|
7
|
+
if (bufferOffset < audioBuffer.length) {
|
|
8
|
+
return copyFromChannel.call(audioBuffer, destination, channelNumber, bufferOffset);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
})(audioBuffer.copyFromChannel);
|
|
12
|
+
audioBuffer.copyToChannel = /* @__PURE__ */ ((copyToChannel) => {
|
|
13
|
+
return (source, channelNumberAsNumber, bufferOffsetAsNumber = 0) => {
|
|
14
|
+
const bufferOffset = convertNumberToUnsignedLong(bufferOffsetAsNumber);
|
|
15
|
+
const channelNumber = convertNumberToUnsignedLong(channelNumberAsNumber);
|
|
16
|
+
if (bufferOffset < audioBuffer.length) {
|
|
17
|
+
return copyToChannel.call(audioBuffer, source, channelNumber, bufferOffset);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
})(audioBuffer.copyToChannel);
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
createWrapAudioBufferCopyChannelMethodsOutOfBounds
|
|
25
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createWrapAudioBufferCopyChannelMethods = (convertNumberToUnsignedLong, createIndexSizeError) => {
|
|
4
|
+
return (audioBuffer) => {
|
|
5
|
+
audioBuffer.copyFromChannel = (destination, channelNumberAsNumber, bufferOffsetAsNumber = 0) => {
|
|
6
|
+
const bufferOffset = convertNumberToUnsignedLong(bufferOffsetAsNumber);
|
|
7
|
+
const channelNumber = convertNumberToUnsignedLong(channelNumberAsNumber);
|
|
8
|
+
if (channelNumber >= audioBuffer.numberOfChannels) {
|
|
9
|
+
throw createIndexSizeError();
|
|
10
|
+
}
|
|
11
|
+
const audioBufferLength = audioBuffer.length;
|
|
12
|
+
const channelData = audioBuffer.getChannelData(channelNumber);
|
|
13
|
+
const destinationLength = destination.length;
|
|
14
|
+
for (let i = bufferOffset < 0 ? -bufferOffset : 0; i + bufferOffset < audioBufferLength && i < destinationLength; i += 1) {
|
|
15
|
+
destination[i] = channelData[i + bufferOffset];
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
audioBuffer.copyToChannel = (source, channelNumberAsNumber, bufferOffsetAsNumber = 0) => {
|
|
19
|
+
const bufferOffset = convertNumberToUnsignedLong(bufferOffsetAsNumber);
|
|
20
|
+
const channelNumber = convertNumberToUnsignedLong(channelNumberAsNumber);
|
|
21
|
+
if (channelNumber >= audioBuffer.numberOfChannels) {
|
|
22
|
+
throw createIndexSizeError();
|
|
23
|
+
}
|
|
24
|
+
const audioBufferLength = audioBuffer.length;
|
|
25
|
+
const channelData = audioBuffer.getChannelData(channelNumber);
|
|
26
|
+
const sourceLength = source.length;
|
|
27
|
+
for (let i = bufferOffset < 0 ? -bufferOffset : 0; i + bufferOffset < audioBufferLength && i < sourceLength; i += 1) {
|
|
28
|
+
channelData[i + bufferOffset] = source[i];
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
exports.createWrapAudioBufferCopyChannelMethods = createWrapAudioBufferCopyChannelMethods;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const createWrapAudioBufferCopyChannelMethods = (convertNumberToUnsignedLong, createIndexSizeError) => {
|
|
2
|
+
return (audioBuffer) => {
|
|
3
|
+
audioBuffer.copyFromChannel = (destination, channelNumberAsNumber, bufferOffsetAsNumber = 0) => {
|
|
4
|
+
const bufferOffset = convertNumberToUnsignedLong(bufferOffsetAsNumber);
|
|
5
|
+
const channelNumber = convertNumberToUnsignedLong(channelNumberAsNumber);
|
|
6
|
+
if (channelNumber >= audioBuffer.numberOfChannels) {
|
|
7
|
+
throw createIndexSizeError();
|
|
8
|
+
}
|
|
9
|
+
const audioBufferLength = audioBuffer.length;
|
|
10
|
+
const channelData = audioBuffer.getChannelData(channelNumber);
|
|
11
|
+
const destinationLength = destination.length;
|
|
12
|
+
for (let i = bufferOffset < 0 ? -bufferOffset : 0; i + bufferOffset < audioBufferLength && i < destinationLength; i += 1) {
|
|
13
|
+
destination[i] = channelData[i + bufferOffset];
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
audioBuffer.copyToChannel = (source, channelNumberAsNumber, bufferOffsetAsNumber = 0) => {
|
|
17
|
+
const bufferOffset = convertNumberToUnsignedLong(bufferOffsetAsNumber);
|
|
18
|
+
const channelNumber = convertNumberToUnsignedLong(channelNumberAsNumber);
|
|
19
|
+
if (channelNumber >= audioBuffer.numberOfChannels) {
|
|
20
|
+
throw createIndexSizeError();
|
|
21
|
+
}
|
|
22
|
+
const audioBufferLength = audioBuffer.length;
|
|
23
|
+
const channelData = audioBuffer.getChannelData(channelNumber);
|
|
24
|
+
const sourceLength = source.length;
|
|
25
|
+
for (let i = bufferOffset < 0 ? -bufferOffset : 0; i + bufferOffset < audioBufferLength && i < sourceLength; i += 1) {
|
|
26
|
+
channelData[i + bufferOffset] = source[i];
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
createWrapAudioBufferCopyChannelMethods
|
|
33
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createWrapAudioBufferSourceNodeStopMethodNullifiedBuffer = (overwriteAccessors) => {
|
|
4
|
+
return (nativeAudioBufferSourceNode, nativeContext) => {
|
|
5
|
+
const nullifiedBuffer = nativeContext.createBuffer(1, 1, 44100);
|
|
6
|
+
if (nativeAudioBufferSourceNode.buffer === null) {
|
|
7
|
+
nativeAudioBufferSourceNode.buffer = nullifiedBuffer;
|
|
8
|
+
}
|
|
9
|
+
overwriteAccessors(nativeAudioBufferSourceNode, "buffer", (get) => () => {
|
|
10
|
+
const value = get.call(nativeAudioBufferSourceNode);
|
|
11
|
+
return value === nullifiedBuffer ? null : value;
|
|
12
|
+
}, (set) => (value) => {
|
|
13
|
+
return set.call(nativeAudioBufferSourceNode, value === null ? nullifiedBuffer : value);
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
exports.createWrapAudioBufferSourceNodeStopMethodNullifiedBuffer = createWrapAudioBufferSourceNodeStopMethodNullifiedBuffer;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const createWrapAudioBufferSourceNodeStopMethodNullifiedBuffer = (overwriteAccessors) => {
|
|
2
|
+
return (nativeAudioBufferSourceNode, nativeContext) => {
|
|
3
|
+
const nullifiedBuffer = nativeContext.createBuffer(1, 1, 44100);
|
|
4
|
+
if (nativeAudioBufferSourceNode.buffer === null) {
|
|
5
|
+
nativeAudioBufferSourceNode.buffer = nullifiedBuffer;
|
|
6
|
+
}
|
|
7
|
+
overwriteAccessors(nativeAudioBufferSourceNode, "buffer", (get) => () => {
|
|
8
|
+
const value = get.call(nativeAudioBufferSourceNode);
|
|
9
|
+
return value === nullifiedBuffer ? null : value;
|
|
10
|
+
}, (set) => (value) => {
|
|
11
|
+
return set.call(nativeAudioBufferSourceNode, value === null ? nullifiedBuffer : value);
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
createWrapAudioBufferSourceNodeStopMethodNullifiedBuffer
|
|
17
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createWrapChannelMergerNode = (createInvalidStateError, monitorConnections) => {
|
|
4
|
+
return (nativeContext, channelMergerNode) => {
|
|
5
|
+
channelMergerNode.channelCount = 1;
|
|
6
|
+
channelMergerNode.channelCountMode = "explicit";
|
|
7
|
+
Object.defineProperty(channelMergerNode, "channelCount", {
|
|
8
|
+
get: () => 1,
|
|
9
|
+
set: () => {
|
|
10
|
+
throw createInvalidStateError();
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(channelMergerNode, "channelCountMode", {
|
|
14
|
+
get: () => "explicit",
|
|
15
|
+
set: () => {
|
|
16
|
+
throw createInvalidStateError();
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const audioBufferSourceNode = nativeContext.createBufferSource();
|
|
20
|
+
const whenConnected = () => {
|
|
21
|
+
const length = channelMergerNode.numberOfInputs;
|
|
22
|
+
for (let i = 0; i < length; i += 1) {
|
|
23
|
+
audioBufferSourceNode.connect(channelMergerNode, 0, i);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
const whenDisconnected = () => audioBufferSourceNode.disconnect(channelMergerNode);
|
|
27
|
+
monitorConnections(channelMergerNode, whenConnected, whenDisconnected);
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
exports.createWrapChannelMergerNode = createWrapChannelMergerNode;
|