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,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const deactivateAudioGraph = require("../helpers/deactivate-audio-graph.cjs");
|
|
4
|
+
const testPromiseSupport = require("../helpers/test-promise-support.cjs");
|
|
5
|
+
const DEFAULT_OPTIONS = {
|
|
6
|
+
numberOfChannels: 1
|
|
7
|
+
};
|
|
8
|
+
const createOfflineAudioContextConstructor = (baseAudioContextConstructor, cacheTestResult, createInvalidStateError, createNativeOfflineAudioContext, startRendering) => {
|
|
9
|
+
return class OfflineAudioContext extends baseAudioContextConstructor {
|
|
10
|
+
constructor(a, b, c) {
|
|
11
|
+
let options;
|
|
12
|
+
if (typeof a === "number" && b !== void 0 && c !== void 0) {
|
|
13
|
+
options = { length: b, numberOfChannels: a, sampleRate: c };
|
|
14
|
+
} else if (typeof a === "object") {
|
|
15
|
+
options = a;
|
|
16
|
+
} else {
|
|
17
|
+
throw new Error("The given parameters are not valid.");
|
|
18
|
+
}
|
|
19
|
+
const { length, numberOfChannels, sampleRate } = { ...DEFAULT_OPTIONS, ...options };
|
|
20
|
+
const nativeOfflineAudioContext = createNativeOfflineAudioContext(numberOfChannels, length, sampleRate);
|
|
21
|
+
if (!cacheTestResult(testPromiseSupport.testPromiseSupport, () => testPromiseSupport.testPromiseSupport(nativeOfflineAudioContext))) {
|
|
22
|
+
nativeOfflineAudioContext.addEventListener("statechange", /* @__PURE__ */ (() => {
|
|
23
|
+
let i = 0;
|
|
24
|
+
const delayStateChangeEvent = (event) => {
|
|
25
|
+
if (this._state === "running") {
|
|
26
|
+
if (i > 0) {
|
|
27
|
+
nativeOfflineAudioContext.removeEventListener("statechange", delayStateChangeEvent);
|
|
28
|
+
event.stopImmediatePropagation();
|
|
29
|
+
this._waitForThePromiseToSettle(event);
|
|
30
|
+
} else {
|
|
31
|
+
i += 1;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
return delayStateChangeEvent;
|
|
36
|
+
})());
|
|
37
|
+
}
|
|
38
|
+
super(nativeOfflineAudioContext, numberOfChannels);
|
|
39
|
+
this._length = length;
|
|
40
|
+
this._nativeOfflineAudioContext = nativeOfflineAudioContext;
|
|
41
|
+
this._state = null;
|
|
42
|
+
}
|
|
43
|
+
get length() {
|
|
44
|
+
if (this._nativeOfflineAudioContext.length === void 0) {
|
|
45
|
+
return this._length;
|
|
46
|
+
}
|
|
47
|
+
return this._nativeOfflineAudioContext.length;
|
|
48
|
+
}
|
|
49
|
+
get state() {
|
|
50
|
+
return this._state === null ? this._nativeOfflineAudioContext.state : this._state;
|
|
51
|
+
}
|
|
52
|
+
startRendering() {
|
|
53
|
+
if (this._state === "running") {
|
|
54
|
+
return Promise.reject(createInvalidStateError());
|
|
55
|
+
}
|
|
56
|
+
this._state = "running";
|
|
57
|
+
return startRendering(this.destination, this._nativeOfflineAudioContext).finally(() => {
|
|
58
|
+
this._state = null;
|
|
59
|
+
deactivateAudioGraph.deactivateAudioGraph(this);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
_waitForThePromiseToSettle(event) {
|
|
63
|
+
if (this._state === null) {
|
|
64
|
+
this._nativeOfflineAudioContext.dispatchEvent(event);
|
|
65
|
+
} else {
|
|
66
|
+
setTimeout(() => this._waitForThePromiseToSettle(event));
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
exports.createOfflineAudioContextConstructor = createOfflineAudioContextConstructor;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { deactivateAudioGraph } from "../helpers/deactivate-audio-graph.js";
|
|
2
|
+
import { testPromiseSupport } from "../helpers/test-promise-support.js";
|
|
3
|
+
const DEFAULT_OPTIONS = {
|
|
4
|
+
numberOfChannels: 1
|
|
5
|
+
};
|
|
6
|
+
const createOfflineAudioContextConstructor = (baseAudioContextConstructor, cacheTestResult, createInvalidStateError, createNativeOfflineAudioContext, startRendering) => {
|
|
7
|
+
return class OfflineAudioContext extends baseAudioContextConstructor {
|
|
8
|
+
constructor(a, b, c) {
|
|
9
|
+
let options;
|
|
10
|
+
if (typeof a === "number" && b !== void 0 && c !== void 0) {
|
|
11
|
+
options = { length: b, numberOfChannels: a, sampleRate: c };
|
|
12
|
+
} else if (typeof a === "object") {
|
|
13
|
+
options = a;
|
|
14
|
+
} else {
|
|
15
|
+
throw new Error("The given parameters are not valid.");
|
|
16
|
+
}
|
|
17
|
+
const { length, numberOfChannels, sampleRate } = { ...DEFAULT_OPTIONS, ...options };
|
|
18
|
+
const nativeOfflineAudioContext = createNativeOfflineAudioContext(numberOfChannels, length, sampleRate);
|
|
19
|
+
if (!cacheTestResult(testPromiseSupport, () => testPromiseSupport(nativeOfflineAudioContext))) {
|
|
20
|
+
nativeOfflineAudioContext.addEventListener("statechange", /* @__PURE__ */ (() => {
|
|
21
|
+
let i = 0;
|
|
22
|
+
const delayStateChangeEvent = (event) => {
|
|
23
|
+
if (this._state === "running") {
|
|
24
|
+
if (i > 0) {
|
|
25
|
+
nativeOfflineAudioContext.removeEventListener("statechange", delayStateChangeEvent);
|
|
26
|
+
event.stopImmediatePropagation();
|
|
27
|
+
this._waitForThePromiseToSettle(event);
|
|
28
|
+
} else {
|
|
29
|
+
i += 1;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
return delayStateChangeEvent;
|
|
34
|
+
})());
|
|
35
|
+
}
|
|
36
|
+
super(nativeOfflineAudioContext, numberOfChannels);
|
|
37
|
+
this._length = length;
|
|
38
|
+
this._nativeOfflineAudioContext = nativeOfflineAudioContext;
|
|
39
|
+
this._state = null;
|
|
40
|
+
}
|
|
41
|
+
get length() {
|
|
42
|
+
if (this._nativeOfflineAudioContext.length === void 0) {
|
|
43
|
+
return this._length;
|
|
44
|
+
}
|
|
45
|
+
return this._nativeOfflineAudioContext.length;
|
|
46
|
+
}
|
|
47
|
+
get state() {
|
|
48
|
+
return this._state === null ? this._nativeOfflineAudioContext.state : this._state;
|
|
49
|
+
}
|
|
50
|
+
startRendering() {
|
|
51
|
+
if (this._state === "running") {
|
|
52
|
+
return Promise.reject(createInvalidStateError());
|
|
53
|
+
}
|
|
54
|
+
this._state = "running";
|
|
55
|
+
return startRendering(this.destination, this._nativeOfflineAudioContext).finally(() => {
|
|
56
|
+
this._state = null;
|
|
57
|
+
deactivateAudioGraph(this);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
_waitForThePromiseToSettle(event) {
|
|
61
|
+
if (this._state === null) {
|
|
62
|
+
this._nativeOfflineAudioContext.dispatchEvent(event);
|
|
63
|
+
} else {
|
|
64
|
+
setTimeout(() => this._waitForThePromiseToSettle(event));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export {
|
|
70
|
+
createOfflineAudioContextConstructor
|
|
71
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const isActiveAudioNode = require("../helpers/is-active-audio-node.cjs");
|
|
4
|
+
const setInternalStateToActive = require("../helpers/set-internal-state-to-active.cjs");
|
|
5
|
+
const setInternalStateToPassive = require("../helpers/set-internal-state-to-passive.cjs");
|
|
6
|
+
const DEFAULT_OPTIONS = {
|
|
7
|
+
channelCount: 2,
|
|
8
|
+
channelCountMode: "max",
|
|
9
|
+
// This attribute has no effect for nodes with no inputs.
|
|
10
|
+
channelInterpretation: "speakers",
|
|
11
|
+
// This attribute has no effect for nodes with no inputs.
|
|
12
|
+
detune: 0,
|
|
13
|
+
frequency: 440,
|
|
14
|
+
periodicWave: void 0,
|
|
15
|
+
type: "sine"
|
|
16
|
+
};
|
|
17
|
+
const createOscillatorNodeConstructor = (audioNodeConstructor, createAudioParam, createNativeOscillatorNode, createOscillatorNodeRenderer, getNativeContext, isNativeOfflineAudioContext, wrapEventListener) => {
|
|
18
|
+
return class OscillatorNode extends audioNodeConstructor {
|
|
19
|
+
constructor(context, options) {
|
|
20
|
+
const nativeContext = getNativeContext(context);
|
|
21
|
+
const mergedOptions = { ...DEFAULT_OPTIONS, ...options };
|
|
22
|
+
const nativeOscillatorNode = createNativeOscillatorNode(nativeContext, mergedOptions);
|
|
23
|
+
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
24
|
+
const oscillatorNodeRenderer = isOffline ? createOscillatorNodeRenderer() : null;
|
|
25
|
+
const nyquist = context.sampleRate / 2;
|
|
26
|
+
super(context, false, nativeOscillatorNode, oscillatorNodeRenderer);
|
|
27
|
+
this._detune = createAudioParam(this, isOffline, nativeOscillatorNode.detune, 153600, -153600);
|
|
28
|
+
this._frequency = createAudioParam(this, isOffline, nativeOscillatorNode.frequency, nyquist, -nyquist);
|
|
29
|
+
this._nativeOscillatorNode = nativeOscillatorNode;
|
|
30
|
+
this._onended = null;
|
|
31
|
+
this._oscillatorNodeRenderer = oscillatorNodeRenderer;
|
|
32
|
+
if (this._oscillatorNodeRenderer !== null && mergedOptions.periodicWave !== void 0) {
|
|
33
|
+
this._oscillatorNodeRenderer.periodicWave = mergedOptions.periodicWave;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
get detune() {
|
|
37
|
+
return this._detune;
|
|
38
|
+
}
|
|
39
|
+
get frequency() {
|
|
40
|
+
return this._frequency;
|
|
41
|
+
}
|
|
42
|
+
get onended() {
|
|
43
|
+
return this._onended;
|
|
44
|
+
}
|
|
45
|
+
set onended(value) {
|
|
46
|
+
const wrappedListener = typeof value === "function" ? wrapEventListener(this, value) : null;
|
|
47
|
+
this._nativeOscillatorNode.onended = wrappedListener;
|
|
48
|
+
const nativeOnEnded = this._nativeOscillatorNode.onended;
|
|
49
|
+
this._onended = nativeOnEnded !== null && nativeOnEnded === wrappedListener ? value : nativeOnEnded;
|
|
50
|
+
}
|
|
51
|
+
get type() {
|
|
52
|
+
return this._nativeOscillatorNode.type;
|
|
53
|
+
}
|
|
54
|
+
set type(value) {
|
|
55
|
+
this._nativeOscillatorNode.type = value;
|
|
56
|
+
if (this._oscillatorNodeRenderer !== null) {
|
|
57
|
+
this._oscillatorNodeRenderer.periodicWave = null;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
setPeriodicWave(periodicWave) {
|
|
61
|
+
this._nativeOscillatorNode.setPeriodicWave(periodicWave);
|
|
62
|
+
if (this._oscillatorNodeRenderer !== null) {
|
|
63
|
+
this._oscillatorNodeRenderer.periodicWave = periodicWave;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
start(when = 0) {
|
|
67
|
+
this._nativeOscillatorNode.start(when);
|
|
68
|
+
if (this._oscillatorNodeRenderer !== null) {
|
|
69
|
+
this._oscillatorNodeRenderer.start = when;
|
|
70
|
+
}
|
|
71
|
+
if (this.context.state !== "closed") {
|
|
72
|
+
setInternalStateToActive.setInternalStateToActive(this);
|
|
73
|
+
const resetInternalStateToPassive = () => {
|
|
74
|
+
this._nativeOscillatorNode.removeEventListener("ended", resetInternalStateToPassive);
|
|
75
|
+
if (isActiveAudioNode.isActiveAudioNode(this)) {
|
|
76
|
+
setInternalStateToPassive.setInternalStateToPassive(this);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
this._nativeOscillatorNode.addEventListener("ended", resetInternalStateToPassive);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
stop(when = 0) {
|
|
83
|
+
this._nativeOscillatorNode.stop(when);
|
|
84
|
+
if (this._oscillatorNodeRenderer !== null) {
|
|
85
|
+
this._oscillatorNodeRenderer.stop = when;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
exports.createOscillatorNodeConstructor = createOscillatorNodeConstructor;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { isActiveAudioNode } from "../helpers/is-active-audio-node.js";
|
|
2
|
+
import { setInternalStateToActive } from "../helpers/set-internal-state-to-active.js";
|
|
3
|
+
import { setInternalStateToPassive } from "../helpers/set-internal-state-to-passive.js";
|
|
4
|
+
const DEFAULT_OPTIONS = {
|
|
5
|
+
channelCount: 2,
|
|
6
|
+
channelCountMode: "max",
|
|
7
|
+
// This attribute has no effect for nodes with no inputs.
|
|
8
|
+
channelInterpretation: "speakers",
|
|
9
|
+
// This attribute has no effect for nodes with no inputs.
|
|
10
|
+
detune: 0,
|
|
11
|
+
frequency: 440,
|
|
12
|
+
periodicWave: void 0,
|
|
13
|
+
type: "sine"
|
|
14
|
+
};
|
|
15
|
+
const createOscillatorNodeConstructor = (audioNodeConstructor, createAudioParam, createNativeOscillatorNode, createOscillatorNodeRenderer, getNativeContext, isNativeOfflineAudioContext, wrapEventListener) => {
|
|
16
|
+
return class OscillatorNode extends audioNodeConstructor {
|
|
17
|
+
constructor(context, options) {
|
|
18
|
+
const nativeContext = getNativeContext(context);
|
|
19
|
+
const mergedOptions = { ...DEFAULT_OPTIONS, ...options };
|
|
20
|
+
const nativeOscillatorNode = createNativeOscillatorNode(nativeContext, mergedOptions);
|
|
21
|
+
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
22
|
+
const oscillatorNodeRenderer = isOffline ? createOscillatorNodeRenderer() : null;
|
|
23
|
+
const nyquist = context.sampleRate / 2;
|
|
24
|
+
super(context, false, nativeOscillatorNode, oscillatorNodeRenderer);
|
|
25
|
+
this._detune = createAudioParam(this, isOffline, nativeOscillatorNode.detune, 153600, -153600);
|
|
26
|
+
this._frequency = createAudioParam(this, isOffline, nativeOscillatorNode.frequency, nyquist, -nyquist);
|
|
27
|
+
this._nativeOscillatorNode = nativeOscillatorNode;
|
|
28
|
+
this._onended = null;
|
|
29
|
+
this._oscillatorNodeRenderer = oscillatorNodeRenderer;
|
|
30
|
+
if (this._oscillatorNodeRenderer !== null && mergedOptions.periodicWave !== void 0) {
|
|
31
|
+
this._oscillatorNodeRenderer.periodicWave = mergedOptions.periodicWave;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
get detune() {
|
|
35
|
+
return this._detune;
|
|
36
|
+
}
|
|
37
|
+
get frequency() {
|
|
38
|
+
return this._frequency;
|
|
39
|
+
}
|
|
40
|
+
get onended() {
|
|
41
|
+
return this._onended;
|
|
42
|
+
}
|
|
43
|
+
set onended(value) {
|
|
44
|
+
const wrappedListener = typeof value === "function" ? wrapEventListener(this, value) : null;
|
|
45
|
+
this._nativeOscillatorNode.onended = wrappedListener;
|
|
46
|
+
const nativeOnEnded = this._nativeOscillatorNode.onended;
|
|
47
|
+
this._onended = nativeOnEnded !== null && nativeOnEnded === wrappedListener ? value : nativeOnEnded;
|
|
48
|
+
}
|
|
49
|
+
get type() {
|
|
50
|
+
return this._nativeOscillatorNode.type;
|
|
51
|
+
}
|
|
52
|
+
set type(value) {
|
|
53
|
+
this._nativeOscillatorNode.type = value;
|
|
54
|
+
if (this._oscillatorNodeRenderer !== null) {
|
|
55
|
+
this._oscillatorNodeRenderer.periodicWave = null;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
setPeriodicWave(periodicWave) {
|
|
59
|
+
this._nativeOscillatorNode.setPeriodicWave(periodicWave);
|
|
60
|
+
if (this._oscillatorNodeRenderer !== null) {
|
|
61
|
+
this._oscillatorNodeRenderer.periodicWave = periodicWave;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
start(when = 0) {
|
|
65
|
+
this._nativeOscillatorNode.start(when);
|
|
66
|
+
if (this._oscillatorNodeRenderer !== null) {
|
|
67
|
+
this._oscillatorNodeRenderer.start = when;
|
|
68
|
+
}
|
|
69
|
+
if (this.context.state !== "closed") {
|
|
70
|
+
setInternalStateToActive(this);
|
|
71
|
+
const resetInternalStateToPassive = () => {
|
|
72
|
+
this._nativeOscillatorNode.removeEventListener("ended", resetInternalStateToPassive);
|
|
73
|
+
if (isActiveAudioNode(this)) {
|
|
74
|
+
setInternalStateToPassive(this);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
this._nativeOscillatorNode.addEventListener("ended", resetInternalStateToPassive);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
stop(when = 0) {
|
|
81
|
+
this._nativeOscillatorNode.stop(when);
|
|
82
|
+
if (this._oscillatorNodeRenderer !== null) {
|
|
83
|
+
this._oscillatorNodeRenderer.stop = when;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
export {
|
|
89
|
+
createOscillatorNodeConstructor
|
|
90
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const isOwnedByContext = require("../helpers/is-owned-by-context.cjs");
|
|
4
|
+
const createOscillatorNodeRendererFactory = (connectAudioParam, createNativeOscillatorNode, getNativeAudioNode, renderAutomation, renderInputsOfAudioNode) => {
|
|
5
|
+
return () => {
|
|
6
|
+
const renderedNativeOscillatorNodes = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let periodicWave = null;
|
|
8
|
+
let start = null;
|
|
9
|
+
let stop = null;
|
|
10
|
+
const createOscillatorNode = async (proxy, nativeOfflineAudioContext) => {
|
|
11
|
+
let nativeOscillatorNode = getNativeAudioNode(proxy);
|
|
12
|
+
const nativeOscillatorNodeIsOwnedByContext = isOwnedByContext.isOwnedByContext(nativeOscillatorNode, nativeOfflineAudioContext);
|
|
13
|
+
if (!nativeOscillatorNodeIsOwnedByContext) {
|
|
14
|
+
const options = {
|
|
15
|
+
channelCount: nativeOscillatorNode.channelCount,
|
|
16
|
+
channelCountMode: nativeOscillatorNode.channelCountMode,
|
|
17
|
+
channelInterpretation: nativeOscillatorNode.channelInterpretation,
|
|
18
|
+
detune: nativeOscillatorNode.detune.value,
|
|
19
|
+
frequency: nativeOscillatorNode.frequency.value,
|
|
20
|
+
periodicWave: periodicWave === null ? void 0 : periodicWave,
|
|
21
|
+
type: nativeOscillatorNode.type
|
|
22
|
+
};
|
|
23
|
+
nativeOscillatorNode = createNativeOscillatorNode(nativeOfflineAudioContext, options);
|
|
24
|
+
if (start !== null) {
|
|
25
|
+
nativeOscillatorNode.start(start);
|
|
26
|
+
}
|
|
27
|
+
if (stop !== null) {
|
|
28
|
+
nativeOscillatorNode.stop(stop);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
renderedNativeOscillatorNodes.set(nativeOfflineAudioContext, nativeOscillatorNode);
|
|
32
|
+
if (!nativeOscillatorNodeIsOwnedByContext) {
|
|
33
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.detune, nativeOscillatorNode.detune);
|
|
34
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.frequency, nativeOscillatorNode.frequency);
|
|
35
|
+
} else {
|
|
36
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.detune, nativeOscillatorNode.detune);
|
|
37
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.frequency, nativeOscillatorNode.frequency);
|
|
38
|
+
}
|
|
39
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeOscillatorNode);
|
|
40
|
+
return nativeOscillatorNode;
|
|
41
|
+
};
|
|
42
|
+
return {
|
|
43
|
+
set periodicWave(value) {
|
|
44
|
+
periodicWave = value;
|
|
45
|
+
},
|
|
46
|
+
set start(value) {
|
|
47
|
+
start = value;
|
|
48
|
+
},
|
|
49
|
+
set stop(value) {
|
|
50
|
+
stop = value;
|
|
51
|
+
},
|
|
52
|
+
render(proxy, nativeOfflineAudioContext) {
|
|
53
|
+
const renderedNativeOscillatorNode = renderedNativeOscillatorNodes.get(nativeOfflineAudioContext);
|
|
54
|
+
if (renderedNativeOscillatorNode !== void 0) {
|
|
55
|
+
return Promise.resolve(renderedNativeOscillatorNode);
|
|
56
|
+
}
|
|
57
|
+
return createOscillatorNode(proxy, nativeOfflineAudioContext);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
exports.createOscillatorNodeRendererFactory = createOscillatorNodeRendererFactory;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { isOwnedByContext } from "../helpers/is-owned-by-context.js";
|
|
2
|
+
const createOscillatorNodeRendererFactory = (connectAudioParam, createNativeOscillatorNode, getNativeAudioNode, renderAutomation, renderInputsOfAudioNode) => {
|
|
3
|
+
return () => {
|
|
4
|
+
const renderedNativeOscillatorNodes = /* @__PURE__ */ new WeakMap();
|
|
5
|
+
let periodicWave = null;
|
|
6
|
+
let start = null;
|
|
7
|
+
let stop = null;
|
|
8
|
+
const createOscillatorNode = async (proxy, nativeOfflineAudioContext) => {
|
|
9
|
+
let nativeOscillatorNode = getNativeAudioNode(proxy);
|
|
10
|
+
const nativeOscillatorNodeIsOwnedByContext = isOwnedByContext(nativeOscillatorNode, nativeOfflineAudioContext);
|
|
11
|
+
if (!nativeOscillatorNodeIsOwnedByContext) {
|
|
12
|
+
const options = {
|
|
13
|
+
channelCount: nativeOscillatorNode.channelCount,
|
|
14
|
+
channelCountMode: nativeOscillatorNode.channelCountMode,
|
|
15
|
+
channelInterpretation: nativeOscillatorNode.channelInterpretation,
|
|
16
|
+
detune: nativeOscillatorNode.detune.value,
|
|
17
|
+
frequency: nativeOscillatorNode.frequency.value,
|
|
18
|
+
periodicWave: periodicWave === null ? void 0 : periodicWave,
|
|
19
|
+
type: nativeOscillatorNode.type
|
|
20
|
+
};
|
|
21
|
+
nativeOscillatorNode = createNativeOscillatorNode(nativeOfflineAudioContext, options);
|
|
22
|
+
if (start !== null) {
|
|
23
|
+
nativeOscillatorNode.start(start);
|
|
24
|
+
}
|
|
25
|
+
if (stop !== null) {
|
|
26
|
+
nativeOscillatorNode.stop(stop);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
renderedNativeOscillatorNodes.set(nativeOfflineAudioContext, nativeOscillatorNode);
|
|
30
|
+
if (!nativeOscillatorNodeIsOwnedByContext) {
|
|
31
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.detune, nativeOscillatorNode.detune);
|
|
32
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.frequency, nativeOscillatorNode.frequency);
|
|
33
|
+
} else {
|
|
34
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.detune, nativeOscillatorNode.detune);
|
|
35
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.frequency, nativeOscillatorNode.frequency);
|
|
36
|
+
}
|
|
37
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeOscillatorNode);
|
|
38
|
+
return nativeOscillatorNode;
|
|
39
|
+
};
|
|
40
|
+
return {
|
|
41
|
+
set periodicWave(value) {
|
|
42
|
+
periodicWave = value;
|
|
43
|
+
},
|
|
44
|
+
set start(value) {
|
|
45
|
+
start = value;
|
|
46
|
+
},
|
|
47
|
+
set stop(value) {
|
|
48
|
+
stop = value;
|
|
49
|
+
},
|
|
50
|
+
render(proxy, nativeOfflineAudioContext) {
|
|
51
|
+
const renderedNativeOscillatorNode = renderedNativeOscillatorNodes.get(nativeOfflineAudioContext);
|
|
52
|
+
if (renderedNativeOscillatorNode !== void 0) {
|
|
53
|
+
return Promise.resolve(renderedNativeOscillatorNode);
|
|
54
|
+
}
|
|
55
|
+
return createOscillatorNode(proxy, nativeOfflineAudioContext);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
createOscillatorNodeRendererFactory
|
|
62
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const constants = require("../constants.cjs");
|
|
4
|
+
const DEFAULT_OPTIONS = {
|
|
5
|
+
channelCount: 2,
|
|
6
|
+
channelCountMode: "clamped-max",
|
|
7
|
+
channelInterpretation: "speakers",
|
|
8
|
+
coneInnerAngle: 360,
|
|
9
|
+
coneOuterAngle: 360,
|
|
10
|
+
coneOuterGain: 0,
|
|
11
|
+
distanceModel: "inverse",
|
|
12
|
+
maxDistance: 1e4,
|
|
13
|
+
orientationX: 1,
|
|
14
|
+
orientationY: 0,
|
|
15
|
+
orientationZ: 0,
|
|
16
|
+
panningModel: "equalpower",
|
|
17
|
+
positionX: 0,
|
|
18
|
+
positionY: 0,
|
|
19
|
+
positionZ: 0,
|
|
20
|
+
refDistance: 1,
|
|
21
|
+
rolloffFactor: 1
|
|
22
|
+
};
|
|
23
|
+
const createPannerNodeConstructor = (audioNodeConstructor, createAudioParam, createNativePannerNode, createPannerNodeRenderer, getNativeContext, isNativeOfflineAudioContext, setAudioNodeTailTime) => {
|
|
24
|
+
return class PannerNode extends audioNodeConstructor {
|
|
25
|
+
constructor(context, options) {
|
|
26
|
+
const nativeContext = getNativeContext(context);
|
|
27
|
+
const mergedOptions = { ...DEFAULT_OPTIONS, ...options };
|
|
28
|
+
const nativePannerNode = createNativePannerNode(nativeContext, mergedOptions);
|
|
29
|
+
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
30
|
+
const pannerNodeRenderer = isOffline ? createPannerNodeRenderer() : null;
|
|
31
|
+
super(context, false, nativePannerNode, pannerNodeRenderer);
|
|
32
|
+
this._nativePannerNode = nativePannerNode;
|
|
33
|
+
this._orientationX = createAudioParam(this, isOffline, nativePannerNode.orientationX, constants.MOST_POSITIVE_SINGLE_FLOAT, constants.MOST_NEGATIVE_SINGLE_FLOAT);
|
|
34
|
+
this._orientationY = createAudioParam(this, isOffline, nativePannerNode.orientationY, constants.MOST_POSITIVE_SINGLE_FLOAT, constants.MOST_NEGATIVE_SINGLE_FLOAT);
|
|
35
|
+
this._orientationZ = createAudioParam(this, isOffline, nativePannerNode.orientationZ, constants.MOST_POSITIVE_SINGLE_FLOAT, constants.MOST_NEGATIVE_SINGLE_FLOAT);
|
|
36
|
+
this._positionX = createAudioParam(this, isOffline, nativePannerNode.positionX, constants.MOST_POSITIVE_SINGLE_FLOAT, constants.MOST_NEGATIVE_SINGLE_FLOAT);
|
|
37
|
+
this._positionY = createAudioParam(this, isOffline, nativePannerNode.positionY, constants.MOST_POSITIVE_SINGLE_FLOAT, constants.MOST_NEGATIVE_SINGLE_FLOAT);
|
|
38
|
+
this._positionZ = createAudioParam(this, isOffline, nativePannerNode.positionZ, constants.MOST_POSITIVE_SINGLE_FLOAT, constants.MOST_NEGATIVE_SINGLE_FLOAT);
|
|
39
|
+
setAudioNodeTailTime(this, 1);
|
|
40
|
+
}
|
|
41
|
+
get coneInnerAngle() {
|
|
42
|
+
return this._nativePannerNode.coneInnerAngle;
|
|
43
|
+
}
|
|
44
|
+
set coneInnerAngle(value) {
|
|
45
|
+
this._nativePannerNode.coneInnerAngle = value;
|
|
46
|
+
}
|
|
47
|
+
get coneOuterAngle() {
|
|
48
|
+
return this._nativePannerNode.coneOuterAngle;
|
|
49
|
+
}
|
|
50
|
+
set coneOuterAngle(value) {
|
|
51
|
+
this._nativePannerNode.coneOuterAngle = value;
|
|
52
|
+
}
|
|
53
|
+
get coneOuterGain() {
|
|
54
|
+
return this._nativePannerNode.coneOuterGain;
|
|
55
|
+
}
|
|
56
|
+
set coneOuterGain(value) {
|
|
57
|
+
this._nativePannerNode.coneOuterGain = value;
|
|
58
|
+
}
|
|
59
|
+
get distanceModel() {
|
|
60
|
+
return this._nativePannerNode.distanceModel;
|
|
61
|
+
}
|
|
62
|
+
set distanceModel(value) {
|
|
63
|
+
this._nativePannerNode.distanceModel = value;
|
|
64
|
+
}
|
|
65
|
+
get maxDistance() {
|
|
66
|
+
return this._nativePannerNode.maxDistance;
|
|
67
|
+
}
|
|
68
|
+
set maxDistance(value) {
|
|
69
|
+
this._nativePannerNode.maxDistance = value;
|
|
70
|
+
}
|
|
71
|
+
get orientationX() {
|
|
72
|
+
return this._orientationX;
|
|
73
|
+
}
|
|
74
|
+
get orientationY() {
|
|
75
|
+
return this._orientationY;
|
|
76
|
+
}
|
|
77
|
+
get orientationZ() {
|
|
78
|
+
return this._orientationZ;
|
|
79
|
+
}
|
|
80
|
+
get panningModel() {
|
|
81
|
+
return this._nativePannerNode.panningModel;
|
|
82
|
+
}
|
|
83
|
+
set panningModel(value) {
|
|
84
|
+
this._nativePannerNode.panningModel = value;
|
|
85
|
+
}
|
|
86
|
+
get positionX() {
|
|
87
|
+
return this._positionX;
|
|
88
|
+
}
|
|
89
|
+
get positionY() {
|
|
90
|
+
return this._positionY;
|
|
91
|
+
}
|
|
92
|
+
get positionZ() {
|
|
93
|
+
return this._positionZ;
|
|
94
|
+
}
|
|
95
|
+
get refDistance() {
|
|
96
|
+
return this._nativePannerNode.refDistance;
|
|
97
|
+
}
|
|
98
|
+
set refDistance(value) {
|
|
99
|
+
this._nativePannerNode.refDistance = value;
|
|
100
|
+
}
|
|
101
|
+
get rolloffFactor() {
|
|
102
|
+
return this._nativePannerNode.rolloffFactor;
|
|
103
|
+
}
|
|
104
|
+
set rolloffFactor(value) {
|
|
105
|
+
this._nativePannerNode.rolloffFactor = value;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
exports.createPannerNodeConstructor = createPannerNodeConstructor;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { MOST_POSITIVE_SINGLE_FLOAT, MOST_NEGATIVE_SINGLE_FLOAT } from "../constants.js";
|
|
2
|
+
const DEFAULT_OPTIONS = {
|
|
3
|
+
channelCount: 2,
|
|
4
|
+
channelCountMode: "clamped-max",
|
|
5
|
+
channelInterpretation: "speakers",
|
|
6
|
+
coneInnerAngle: 360,
|
|
7
|
+
coneOuterAngle: 360,
|
|
8
|
+
coneOuterGain: 0,
|
|
9
|
+
distanceModel: "inverse",
|
|
10
|
+
maxDistance: 1e4,
|
|
11
|
+
orientationX: 1,
|
|
12
|
+
orientationY: 0,
|
|
13
|
+
orientationZ: 0,
|
|
14
|
+
panningModel: "equalpower",
|
|
15
|
+
positionX: 0,
|
|
16
|
+
positionY: 0,
|
|
17
|
+
positionZ: 0,
|
|
18
|
+
refDistance: 1,
|
|
19
|
+
rolloffFactor: 1
|
|
20
|
+
};
|
|
21
|
+
const createPannerNodeConstructor = (audioNodeConstructor, createAudioParam, createNativePannerNode, createPannerNodeRenderer, getNativeContext, isNativeOfflineAudioContext, setAudioNodeTailTime) => {
|
|
22
|
+
return class PannerNode extends audioNodeConstructor {
|
|
23
|
+
constructor(context, options) {
|
|
24
|
+
const nativeContext = getNativeContext(context);
|
|
25
|
+
const mergedOptions = { ...DEFAULT_OPTIONS, ...options };
|
|
26
|
+
const nativePannerNode = createNativePannerNode(nativeContext, mergedOptions);
|
|
27
|
+
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
28
|
+
const pannerNodeRenderer = isOffline ? createPannerNodeRenderer() : null;
|
|
29
|
+
super(context, false, nativePannerNode, pannerNodeRenderer);
|
|
30
|
+
this._nativePannerNode = nativePannerNode;
|
|
31
|
+
this._orientationX = createAudioParam(this, isOffline, nativePannerNode.orientationX, MOST_POSITIVE_SINGLE_FLOAT, MOST_NEGATIVE_SINGLE_FLOAT);
|
|
32
|
+
this._orientationY = createAudioParam(this, isOffline, nativePannerNode.orientationY, MOST_POSITIVE_SINGLE_FLOAT, MOST_NEGATIVE_SINGLE_FLOAT);
|
|
33
|
+
this._orientationZ = createAudioParam(this, isOffline, nativePannerNode.orientationZ, MOST_POSITIVE_SINGLE_FLOAT, MOST_NEGATIVE_SINGLE_FLOAT);
|
|
34
|
+
this._positionX = createAudioParam(this, isOffline, nativePannerNode.positionX, MOST_POSITIVE_SINGLE_FLOAT, MOST_NEGATIVE_SINGLE_FLOAT);
|
|
35
|
+
this._positionY = createAudioParam(this, isOffline, nativePannerNode.positionY, MOST_POSITIVE_SINGLE_FLOAT, MOST_NEGATIVE_SINGLE_FLOAT);
|
|
36
|
+
this._positionZ = createAudioParam(this, isOffline, nativePannerNode.positionZ, MOST_POSITIVE_SINGLE_FLOAT, MOST_NEGATIVE_SINGLE_FLOAT);
|
|
37
|
+
setAudioNodeTailTime(this, 1);
|
|
38
|
+
}
|
|
39
|
+
get coneInnerAngle() {
|
|
40
|
+
return this._nativePannerNode.coneInnerAngle;
|
|
41
|
+
}
|
|
42
|
+
set coneInnerAngle(value) {
|
|
43
|
+
this._nativePannerNode.coneInnerAngle = value;
|
|
44
|
+
}
|
|
45
|
+
get coneOuterAngle() {
|
|
46
|
+
return this._nativePannerNode.coneOuterAngle;
|
|
47
|
+
}
|
|
48
|
+
set coneOuterAngle(value) {
|
|
49
|
+
this._nativePannerNode.coneOuterAngle = value;
|
|
50
|
+
}
|
|
51
|
+
get coneOuterGain() {
|
|
52
|
+
return this._nativePannerNode.coneOuterGain;
|
|
53
|
+
}
|
|
54
|
+
set coneOuterGain(value) {
|
|
55
|
+
this._nativePannerNode.coneOuterGain = value;
|
|
56
|
+
}
|
|
57
|
+
get distanceModel() {
|
|
58
|
+
return this._nativePannerNode.distanceModel;
|
|
59
|
+
}
|
|
60
|
+
set distanceModel(value) {
|
|
61
|
+
this._nativePannerNode.distanceModel = value;
|
|
62
|
+
}
|
|
63
|
+
get maxDistance() {
|
|
64
|
+
return this._nativePannerNode.maxDistance;
|
|
65
|
+
}
|
|
66
|
+
set maxDistance(value) {
|
|
67
|
+
this._nativePannerNode.maxDistance = value;
|
|
68
|
+
}
|
|
69
|
+
get orientationX() {
|
|
70
|
+
return this._orientationX;
|
|
71
|
+
}
|
|
72
|
+
get orientationY() {
|
|
73
|
+
return this._orientationY;
|
|
74
|
+
}
|
|
75
|
+
get orientationZ() {
|
|
76
|
+
return this._orientationZ;
|
|
77
|
+
}
|
|
78
|
+
get panningModel() {
|
|
79
|
+
return this._nativePannerNode.panningModel;
|
|
80
|
+
}
|
|
81
|
+
set panningModel(value) {
|
|
82
|
+
this._nativePannerNode.panningModel = value;
|
|
83
|
+
}
|
|
84
|
+
get positionX() {
|
|
85
|
+
return this._positionX;
|
|
86
|
+
}
|
|
87
|
+
get positionY() {
|
|
88
|
+
return this._positionY;
|
|
89
|
+
}
|
|
90
|
+
get positionZ() {
|
|
91
|
+
return this._positionZ;
|
|
92
|
+
}
|
|
93
|
+
get refDistance() {
|
|
94
|
+
return this._nativePannerNode.refDistance;
|
|
95
|
+
}
|
|
96
|
+
set refDistance(value) {
|
|
97
|
+
this._nativePannerNode.refDistance = value;
|
|
98
|
+
}
|
|
99
|
+
get rolloffFactor() {
|
|
100
|
+
return this._nativePannerNode.rolloffFactor;
|
|
101
|
+
}
|
|
102
|
+
set rolloffFactor(value) {
|
|
103
|
+
this._nativePannerNode.rolloffFactor = value;
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
export {
|
|
108
|
+
createPannerNodeConstructor
|
|
109
|
+
};
|