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,166 @@
|
|
|
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 createPannerNodeRendererFactory = (connectAudioParam, createNativeChannelMergerNode, createNativeConstantSourceNode, createNativeGainNode, createNativePannerNode, getNativeAudioNode, nativeOfflineAudioContextConstructor, renderAutomation, renderInputsOfAudioNode, renderNativeOfflineAudioContext) => {
|
|
6
|
+
return () => {
|
|
7
|
+
const renderedNativeAudioNodes = /* @__PURE__ */ new WeakMap();
|
|
8
|
+
let renderedBufferPromise = null;
|
|
9
|
+
const createAudioNode = async (proxy, nativeOfflineAudioContext) => {
|
|
10
|
+
let nativeGainNode = null;
|
|
11
|
+
let nativePannerNode = getNativeAudioNode(proxy);
|
|
12
|
+
const commonAudioNodeOptions = {
|
|
13
|
+
channelCount: nativePannerNode.channelCount,
|
|
14
|
+
channelCountMode: nativePannerNode.channelCountMode,
|
|
15
|
+
channelInterpretation: nativePannerNode.channelInterpretation
|
|
16
|
+
};
|
|
17
|
+
const commonNativePannerNodeOptions = {
|
|
18
|
+
...commonAudioNodeOptions,
|
|
19
|
+
coneInnerAngle: nativePannerNode.coneInnerAngle,
|
|
20
|
+
coneOuterAngle: nativePannerNode.coneOuterAngle,
|
|
21
|
+
coneOuterGain: nativePannerNode.coneOuterGain,
|
|
22
|
+
distanceModel: nativePannerNode.distanceModel,
|
|
23
|
+
maxDistance: nativePannerNode.maxDistance,
|
|
24
|
+
panningModel: nativePannerNode.panningModel,
|
|
25
|
+
refDistance: nativePannerNode.refDistance,
|
|
26
|
+
rolloffFactor: nativePannerNode.rolloffFactor
|
|
27
|
+
};
|
|
28
|
+
const nativePannerNodeIsOwnedByContext = isOwnedByContext.isOwnedByContext(nativePannerNode, nativeOfflineAudioContext);
|
|
29
|
+
if ("bufferSize" in nativePannerNode) {
|
|
30
|
+
nativeGainNode = createNativeGainNode(nativeOfflineAudioContext, { ...commonAudioNodeOptions, gain: 1 });
|
|
31
|
+
} else if (!nativePannerNodeIsOwnedByContext) {
|
|
32
|
+
const options = {
|
|
33
|
+
...commonNativePannerNodeOptions,
|
|
34
|
+
orientationX: nativePannerNode.orientationX.value,
|
|
35
|
+
orientationY: nativePannerNode.orientationY.value,
|
|
36
|
+
orientationZ: nativePannerNode.orientationZ.value,
|
|
37
|
+
positionX: nativePannerNode.positionX.value,
|
|
38
|
+
positionY: nativePannerNode.positionY.value,
|
|
39
|
+
positionZ: nativePannerNode.positionZ.value
|
|
40
|
+
};
|
|
41
|
+
nativePannerNode = createNativePannerNode(nativeOfflineAudioContext, options);
|
|
42
|
+
}
|
|
43
|
+
renderedNativeAudioNodes.set(nativeOfflineAudioContext, nativeGainNode === null ? nativePannerNode : nativeGainNode);
|
|
44
|
+
if (nativeGainNode !== null) {
|
|
45
|
+
if (renderedBufferPromise === null) {
|
|
46
|
+
if (nativeOfflineAudioContextConstructor === null) {
|
|
47
|
+
throw new Error("Missing the native OfflineAudioContext constructor.");
|
|
48
|
+
}
|
|
49
|
+
const partialOfflineAudioContext = new nativeOfflineAudioContextConstructor(
|
|
50
|
+
6,
|
|
51
|
+
// Bug #17: Safari does not yet expose the length.
|
|
52
|
+
proxy.context.length,
|
|
53
|
+
nativeOfflineAudioContext.sampleRate
|
|
54
|
+
);
|
|
55
|
+
const nativeChannelMergerNode = createNativeChannelMergerNode(partialOfflineAudioContext, {
|
|
56
|
+
channelCount: 1,
|
|
57
|
+
channelCountMode: "explicit",
|
|
58
|
+
channelInterpretation: "speakers",
|
|
59
|
+
numberOfInputs: 6
|
|
60
|
+
});
|
|
61
|
+
nativeChannelMergerNode.connect(partialOfflineAudioContext.destination);
|
|
62
|
+
renderedBufferPromise = (async () => {
|
|
63
|
+
const nativeConstantSourceNodes = await Promise.all([
|
|
64
|
+
proxy.orientationX,
|
|
65
|
+
proxy.orientationY,
|
|
66
|
+
proxy.orientationZ,
|
|
67
|
+
proxy.positionX,
|
|
68
|
+
proxy.positionY,
|
|
69
|
+
proxy.positionZ
|
|
70
|
+
].map(async (audioParam, index) => {
|
|
71
|
+
const nativeConstantSourceNode = createNativeConstantSourceNode(partialOfflineAudioContext, {
|
|
72
|
+
channelCount: 1,
|
|
73
|
+
channelCountMode: "explicit",
|
|
74
|
+
channelInterpretation: "discrete",
|
|
75
|
+
offset: index === 0 ? 1 : 0
|
|
76
|
+
});
|
|
77
|
+
await renderAutomation(partialOfflineAudioContext, audioParam, nativeConstantSourceNode.offset);
|
|
78
|
+
return nativeConstantSourceNode;
|
|
79
|
+
}));
|
|
80
|
+
for (let i = 0; i < 6; i += 1) {
|
|
81
|
+
nativeConstantSourceNodes[i].connect(nativeChannelMergerNode, 0, i);
|
|
82
|
+
nativeConstantSourceNodes[i].start(0);
|
|
83
|
+
}
|
|
84
|
+
return renderNativeOfflineAudioContext(partialOfflineAudioContext);
|
|
85
|
+
})();
|
|
86
|
+
}
|
|
87
|
+
const renderedBuffer = await renderedBufferPromise;
|
|
88
|
+
const inputGainNode = createNativeGainNode(nativeOfflineAudioContext, { ...commonAudioNodeOptions, gain: 1 });
|
|
89
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, inputGainNode);
|
|
90
|
+
const channelDatas = [];
|
|
91
|
+
for (let i = 0; i < renderedBuffer.numberOfChannels; i += 1) {
|
|
92
|
+
channelDatas.push(renderedBuffer.getChannelData(i));
|
|
93
|
+
}
|
|
94
|
+
let lastOrientation = [channelDatas[0][0], channelDatas[1][0], channelDatas[2][0]];
|
|
95
|
+
let lastPosition = [channelDatas[3][0], channelDatas[4][0], channelDatas[5][0]];
|
|
96
|
+
let gateGainNode = createNativeGainNode(nativeOfflineAudioContext, { ...commonAudioNodeOptions, gain: 1 });
|
|
97
|
+
let partialPannerNode = createNativePannerNode(nativeOfflineAudioContext, {
|
|
98
|
+
...commonNativePannerNodeOptions,
|
|
99
|
+
orientationX: lastOrientation[0],
|
|
100
|
+
orientationY: lastOrientation[1],
|
|
101
|
+
orientationZ: lastOrientation[2],
|
|
102
|
+
positionX: lastPosition[0],
|
|
103
|
+
positionY: lastPosition[1],
|
|
104
|
+
positionZ: lastPosition[2]
|
|
105
|
+
});
|
|
106
|
+
inputGainNode.connect(gateGainNode).connect(partialPannerNode.inputs[0]);
|
|
107
|
+
partialPannerNode.connect(nativeGainNode);
|
|
108
|
+
for (let i = 128; i < renderedBuffer.length; i += 128) {
|
|
109
|
+
const orientation = [channelDatas[0][i], channelDatas[1][i], channelDatas[2][i]];
|
|
110
|
+
const positon = [channelDatas[3][i], channelDatas[4][i], channelDatas[5][i]];
|
|
111
|
+
if (orientation.some((value, index) => value !== lastOrientation[index]) || positon.some((value, index) => value !== lastPosition[index])) {
|
|
112
|
+
lastOrientation = orientation;
|
|
113
|
+
lastPosition = positon;
|
|
114
|
+
const currentTime = i / nativeOfflineAudioContext.sampleRate;
|
|
115
|
+
gateGainNode.gain.setValueAtTime(0, currentTime);
|
|
116
|
+
gateGainNode = createNativeGainNode(nativeOfflineAudioContext, { ...commonAudioNodeOptions, gain: 0 });
|
|
117
|
+
partialPannerNode = createNativePannerNode(nativeOfflineAudioContext, {
|
|
118
|
+
...commonNativePannerNodeOptions,
|
|
119
|
+
orientationX: lastOrientation[0],
|
|
120
|
+
orientationY: lastOrientation[1],
|
|
121
|
+
orientationZ: lastOrientation[2],
|
|
122
|
+
positionX: lastPosition[0],
|
|
123
|
+
positionY: lastPosition[1],
|
|
124
|
+
positionZ: lastPosition[2]
|
|
125
|
+
});
|
|
126
|
+
gateGainNode.gain.setValueAtTime(1, currentTime);
|
|
127
|
+
inputGainNode.connect(gateGainNode).connect(partialPannerNode.inputs[0]);
|
|
128
|
+
partialPannerNode.connect(nativeGainNode);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return nativeGainNode;
|
|
132
|
+
}
|
|
133
|
+
if (!nativePannerNodeIsOwnedByContext) {
|
|
134
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.orientationX, nativePannerNode.orientationX);
|
|
135
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.orientationY, nativePannerNode.orientationY);
|
|
136
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.orientationZ, nativePannerNode.orientationZ);
|
|
137
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.positionX, nativePannerNode.positionX);
|
|
138
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.positionY, nativePannerNode.positionY);
|
|
139
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.positionZ, nativePannerNode.positionZ);
|
|
140
|
+
} else {
|
|
141
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.orientationX, nativePannerNode.orientationX);
|
|
142
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.orientationY, nativePannerNode.orientationY);
|
|
143
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.orientationZ, nativePannerNode.orientationZ);
|
|
144
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.positionX, nativePannerNode.positionX);
|
|
145
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.positionY, nativePannerNode.positionY);
|
|
146
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.positionZ, nativePannerNode.positionZ);
|
|
147
|
+
}
|
|
148
|
+
if (nativeAudioNodeFaker.isNativeAudioNodeFaker(nativePannerNode)) {
|
|
149
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativePannerNode.inputs[0]);
|
|
150
|
+
} else {
|
|
151
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativePannerNode);
|
|
152
|
+
}
|
|
153
|
+
return nativePannerNode;
|
|
154
|
+
};
|
|
155
|
+
return {
|
|
156
|
+
render(proxy, nativeOfflineAudioContext) {
|
|
157
|
+
const renderedNativeGainNodeOrNativePannerNode = renderedNativeAudioNodes.get(nativeOfflineAudioContext);
|
|
158
|
+
if (renderedNativeGainNodeOrNativePannerNode !== void 0) {
|
|
159
|
+
return Promise.resolve(renderedNativeGainNodeOrNativePannerNode);
|
|
160
|
+
}
|
|
161
|
+
return createAudioNode(proxy, nativeOfflineAudioContext);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
exports.createPannerNodeRendererFactory = createPannerNodeRendererFactory;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { isNativeAudioNodeFaker } from "../guards/native-audio-node-faker.js";
|
|
2
|
+
import { isOwnedByContext } from "../helpers/is-owned-by-context.js";
|
|
3
|
+
const createPannerNodeRendererFactory = (connectAudioParam, createNativeChannelMergerNode, createNativeConstantSourceNode, createNativeGainNode, createNativePannerNode, getNativeAudioNode, nativeOfflineAudioContextConstructor, renderAutomation, renderInputsOfAudioNode, renderNativeOfflineAudioContext) => {
|
|
4
|
+
return () => {
|
|
5
|
+
const renderedNativeAudioNodes = /* @__PURE__ */ new WeakMap();
|
|
6
|
+
let renderedBufferPromise = null;
|
|
7
|
+
const createAudioNode = async (proxy, nativeOfflineAudioContext) => {
|
|
8
|
+
let nativeGainNode = null;
|
|
9
|
+
let nativePannerNode = getNativeAudioNode(proxy);
|
|
10
|
+
const commonAudioNodeOptions = {
|
|
11
|
+
channelCount: nativePannerNode.channelCount,
|
|
12
|
+
channelCountMode: nativePannerNode.channelCountMode,
|
|
13
|
+
channelInterpretation: nativePannerNode.channelInterpretation
|
|
14
|
+
};
|
|
15
|
+
const commonNativePannerNodeOptions = {
|
|
16
|
+
...commonAudioNodeOptions,
|
|
17
|
+
coneInnerAngle: nativePannerNode.coneInnerAngle,
|
|
18
|
+
coneOuterAngle: nativePannerNode.coneOuterAngle,
|
|
19
|
+
coneOuterGain: nativePannerNode.coneOuterGain,
|
|
20
|
+
distanceModel: nativePannerNode.distanceModel,
|
|
21
|
+
maxDistance: nativePannerNode.maxDistance,
|
|
22
|
+
panningModel: nativePannerNode.panningModel,
|
|
23
|
+
refDistance: nativePannerNode.refDistance,
|
|
24
|
+
rolloffFactor: nativePannerNode.rolloffFactor
|
|
25
|
+
};
|
|
26
|
+
const nativePannerNodeIsOwnedByContext = isOwnedByContext(nativePannerNode, nativeOfflineAudioContext);
|
|
27
|
+
if ("bufferSize" in nativePannerNode) {
|
|
28
|
+
nativeGainNode = createNativeGainNode(nativeOfflineAudioContext, { ...commonAudioNodeOptions, gain: 1 });
|
|
29
|
+
} else if (!nativePannerNodeIsOwnedByContext) {
|
|
30
|
+
const options = {
|
|
31
|
+
...commonNativePannerNodeOptions,
|
|
32
|
+
orientationX: nativePannerNode.orientationX.value,
|
|
33
|
+
orientationY: nativePannerNode.orientationY.value,
|
|
34
|
+
orientationZ: nativePannerNode.orientationZ.value,
|
|
35
|
+
positionX: nativePannerNode.positionX.value,
|
|
36
|
+
positionY: nativePannerNode.positionY.value,
|
|
37
|
+
positionZ: nativePannerNode.positionZ.value
|
|
38
|
+
};
|
|
39
|
+
nativePannerNode = createNativePannerNode(nativeOfflineAudioContext, options);
|
|
40
|
+
}
|
|
41
|
+
renderedNativeAudioNodes.set(nativeOfflineAudioContext, nativeGainNode === null ? nativePannerNode : nativeGainNode);
|
|
42
|
+
if (nativeGainNode !== null) {
|
|
43
|
+
if (renderedBufferPromise === null) {
|
|
44
|
+
if (nativeOfflineAudioContextConstructor === null) {
|
|
45
|
+
throw new Error("Missing the native OfflineAudioContext constructor.");
|
|
46
|
+
}
|
|
47
|
+
const partialOfflineAudioContext = new nativeOfflineAudioContextConstructor(
|
|
48
|
+
6,
|
|
49
|
+
// Bug #17: Safari does not yet expose the length.
|
|
50
|
+
proxy.context.length,
|
|
51
|
+
nativeOfflineAudioContext.sampleRate
|
|
52
|
+
);
|
|
53
|
+
const nativeChannelMergerNode = createNativeChannelMergerNode(partialOfflineAudioContext, {
|
|
54
|
+
channelCount: 1,
|
|
55
|
+
channelCountMode: "explicit",
|
|
56
|
+
channelInterpretation: "speakers",
|
|
57
|
+
numberOfInputs: 6
|
|
58
|
+
});
|
|
59
|
+
nativeChannelMergerNode.connect(partialOfflineAudioContext.destination);
|
|
60
|
+
renderedBufferPromise = (async () => {
|
|
61
|
+
const nativeConstantSourceNodes = await Promise.all([
|
|
62
|
+
proxy.orientationX,
|
|
63
|
+
proxy.orientationY,
|
|
64
|
+
proxy.orientationZ,
|
|
65
|
+
proxy.positionX,
|
|
66
|
+
proxy.positionY,
|
|
67
|
+
proxy.positionZ
|
|
68
|
+
].map(async (audioParam, index) => {
|
|
69
|
+
const nativeConstantSourceNode = createNativeConstantSourceNode(partialOfflineAudioContext, {
|
|
70
|
+
channelCount: 1,
|
|
71
|
+
channelCountMode: "explicit",
|
|
72
|
+
channelInterpretation: "discrete",
|
|
73
|
+
offset: index === 0 ? 1 : 0
|
|
74
|
+
});
|
|
75
|
+
await renderAutomation(partialOfflineAudioContext, audioParam, nativeConstantSourceNode.offset);
|
|
76
|
+
return nativeConstantSourceNode;
|
|
77
|
+
}));
|
|
78
|
+
for (let i = 0; i < 6; i += 1) {
|
|
79
|
+
nativeConstantSourceNodes[i].connect(nativeChannelMergerNode, 0, i);
|
|
80
|
+
nativeConstantSourceNodes[i].start(0);
|
|
81
|
+
}
|
|
82
|
+
return renderNativeOfflineAudioContext(partialOfflineAudioContext);
|
|
83
|
+
})();
|
|
84
|
+
}
|
|
85
|
+
const renderedBuffer = await renderedBufferPromise;
|
|
86
|
+
const inputGainNode = createNativeGainNode(nativeOfflineAudioContext, { ...commonAudioNodeOptions, gain: 1 });
|
|
87
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, inputGainNode);
|
|
88
|
+
const channelDatas = [];
|
|
89
|
+
for (let i = 0; i < renderedBuffer.numberOfChannels; i += 1) {
|
|
90
|
+
channelDatas.push(renderedBuffer.getChannelData(i));
|
|
91
|
+
}
|
|
92
|
+
let lastOrientation = [channelDatas[0][0], channelDatas[1][0], channelDatas[2][0]];
|
|
93
|
+
let lastPosition = [channelDatas[3][0], channelDatas[4][0], channelDatas[5][0]];
|
|
94
|
+
let gateGainNode = createNativeGainNode(nativeOfflineAudioContext, { ...commonAudioNodeOptions, gain: 1 });
|
|
95
|
+
let partialPannerNode = createNativePannerNode(nativeOfflineAudioContext, {
|
|
96
|
+
...commonNativePannerNodeOptions,
|
|
97
|
+
orientationX: lastOrientation[0],
|
|
98
|
+
orientationY: lastOrientation[1],
|
|
99
|
+
orientationZ: lastOrientation[2],
|
|
100
|
+
positionX: lastPosition[0],
|
|
101
|
+
positionY: lastPosition[1],
|
|
102
|
+
positionZ: lastPosition[2]
|
|
103
|
+
});
|
|
104
|
+
inputGainNode.connect(gateGainNode).connect(partialPannerNode.inputs[0]);
|
|
105
|
+
partialPannerNode.connect(nativeGainNode);
|
|
106
|
+
for (let i = 128; i < renderedBuffer.length; i += 128) {
|
|
107
|
+
const orientation = [channelDatas[0][i], channelDatas[1][i], channelDatas[2][i]];
|
|
108
|
+
const positon = [channelDatas[3][i], channelDatas[4][i], channelDatas[5][i]];
|
|
109
|
+
if (orientation.some((value, index) => value !== lastOrientation[index]) || positon.some((value, index) => value !== lastPosition[index])) {
|
|
110
|
+
lastOrientation = orientation;
|
|
111
|
+
lastPosition = positon;
|
|
112
|
+
const currentTime = i / nativeOfflineAudioContext.sampleRate;
|
|
113
|
+
gateGainNode.gain.setValueAtTime(0, currentTime);
|
|
114
|
+
gateGainNode = createNativeGainNode(nativeOfflineAudioContext, { ...commonAudioNodeOptions, gain: 0 });
|
|
115
|
+
partialPannerNode = createNativePannerNode(nativeOfflineAudioContext, {
|
|
116
|
+
...commonNativePannerNodeOptions,
|
|
117
|
+
orientationX: lastOrientation[0],
|
|
118
|
+
orientationY: lastOrientation[1],
|
|
119
|
+
orientationZ: lastOrientation[2],
|
|
120
|
+
positionX: lastPosition[0],
|
|
121
|
+
positionY: lastPosition[1],
|
|
122
|
+
positionZ: lastPosition[2]
|
|
123
|
+
});
|
|
124
|
+
gateGainNode.gain.setValueAtTime(1, currentTime);
|
|
125
|
+
inputGainNode.connect(gateGainNode).connect(partialPannerNode.inputs[0]);
|
|
126
|
+
partialPannerNode.connect(nativeGainNode);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return nativeGainNode;
|
|
130
|
+
}
|
|
131
|
+
if (!nativePannerNodeIsOwnedByContext) {
|
|
132
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.orientationX, nativePannerNode.orientationX);
|
|
133
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.orientationY, nativePannerNode.orientationY);
|
|
134
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.orientationZ, nativePannerNode.orientationZ);
|
|
135
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.positionX, nativePannerNode.positionX);
|
|
136
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.positionY, nativePannerNode.positionY);
|
|
137
|
+
await renderAutomation(nativeOfflineAudioContext, proxy.positionZ, nativePannerNode.positionZ);
|
|
138
|
+
} else {
|
|
139
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.orientationX, nativePannerNode.orientationX);
|
|
140
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.orientationY, nativePannerNode.orientationY);
|
|
141
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.orientationZ, nativePannerNode.orientationZ);
|
|
142
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.positionX, nativePannerNode.positionX);
|
|
143
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.positionY, nativePannerNode.positionY);
|
|
144
|
+
await connectAudioParam(nativeOfflineAudioContext, proxy.positionZ, nativePannerNode.positionZ);
|
|
145
|
+
}
|
|
146
|
+
if (isNativeAudioNodeFaker(nativePannerNode)) {
|
|
147
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativePannerNode.inputs[0]);
|
|
148
|
+
} else {
|
|
149
|
+
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativePannerNode);
|
|
150
|
+
}
|
|
151
|
+
return nativePannerNode;
|
|
152
|
+
};
|
|
153
|
+
return {
|
|
154
|
+
render(proxy, nativeOfflineAudioContext) {
|
|
155
|
+
const renderedNativeGainNodeOrNativePannerNode = renderedNativeAudioNodes.get(nativeOfflineAudioContext);
|
|
156
|
+
if (renderedNativeGainNodeOrNativePannerNode !== void 0) {
|
|
157
|
+
return Promise.resolve(renderedNativeGainNodeOrNativePannerNode);
|
|
158
|
+
}
|
|
159
|
+
return createAudioNode(proxy, nativeOfflineAudioContext);
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
export {
|
|
165
|
+
createPannerNodeRendererFactory
|
|
166
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const DEFAULT_OPTIONS = {
|
|
4
|
+
disableNormalization: false
|
|
5
|
+
};
|
|
6
|
+
const createPeriodicWaveConstructor = (createNativePeriodicWave, getNativeContext, periodicWaveStore, sanitizePeriodicWaveOptions) => {
|
|
7
|
+
return class PeriodicWave {
|
|
8
|
+
constructor(context, options) {
|
|
9
|
+
const nativeContext = getNativeContext(context);
|
|
10
|
+
const mergedOptions = sanitizePeriodicWaveOptions({ ...DEFAULT_OPTIONS, ...options });
|
|
11
|
+
const periodicWave = createNativePeriodicWave(nativeContext, mergedOptions);
|
|
12
|
+
periodicWaveStore.add(periodicWave);
|
|
13
|
+
return periodicWave;
|
|
14
|
+
}
|
|
15
|
+
static [Symbol.hasInstance](instance) {
|
|
16
|
+
return instance !== null && typeof instance === "object" && Object.getPrototypeOf(instance) === PeriodicWave.prototype || periodicWaveStore.has(instance);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
exports.createPeriodicWaveConstructor = createPeriodicWaveConstructor;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const DEFAULT_OPTIONS = {
|
|
2
|
+
disableNormalization: false
|
|
3
|
+
};
|
|
4
|
+
const createPeriodicWaveConstructor = (createNativePeriodicWave, getNativeContext, periodicWaveStore, sanitizePeriodicWaveOptions) => {
|
|
5
|
+
return class PeriodicWave {
|
|
6
|
+
constructor(context, options) {
|
|
7
|
+
const nativeContext = getNativeContext(context);
|
|
8
|
+
const mergedOptions = sanitizePeriodicWaveOptions({ ...DEFAULT_OPTIONS, ...options });
|
|
9
|
+
const periodicWave = createNativePeriodicWave(nativeContext, mergedOptions);
|
|
10
|
+
periodicWaveStore.add(periodicWave);
|
|
11
|
+
return periodicWave;
|
|
12
|
+
}
|
|
13
|
+
static [Symbol.hasInstance](instance) {
|
|
14
|
+
return instance !== null && typeof instance === "object" && Object.getPrototypeOf(instance) === PeriodicWave.prototype || periodicWaveStore.has(instance);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
createPeriodicWaveConstructor
|
|
20
|
+
};
|
package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-automation.cjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createRenderAutomation = (getAudioParamRenderer, renderInputsOfAudioParam) => {
|
|
4
|
+
return (nativeOfflineAudioContext, audioParam, nativeAudioParam) => {
|
|
5
|
+
const audioParamRenderer = getAudioParamRenderer(audioParam);
|
|
6
|
+
audioParamRenderer.replay(nativeAudioParam);
|
|
7
|
+
return renderInputsOfAudioParam(audioParam, nativeOfflineAudioContext, nativeAudioParam);
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
exports.createRenderAutomation = createRenderAutomation;
|
package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-automation.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const createRenderAutomation = (getAudioParamRenderer, renderInputsOfAudioParam) => {
|
|
2
|
+
return (nativeOfflineAudioContext, audioParam, nativeAudioParam) => {
|
|
3
|
+
const audioParamRenderer = getAudioParamRenderer(audioParam);
|
|
4
|
+
audioParamRenderer.replay(nativeAudioParam);
|
|
5
|
+
return renderInputsOfAudioParam(audioParam, nativeOfflineAudioContext, nativeAudioParam);
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
createRenderAutomation
|
|
10
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createRenderInputsOfAudioNode = (getAudioNodeConnections, getAudioNodeRenderer, isPartOfACycle) => {
|
|
4
|
+
return async (audioNode, nativeOfflineAudioContext, nativeAudioNode) => {
|
|
5
|
+
const audioNodeConnections = getAudioNodeConnections(audioNode);
|
|
6
|
+
await Promise.all(audioNodeConnections.activeInputs.map((connections, input) => Array.from(connections).map(async ([source, output]) => {
|
|
7
|
+
const audioNodeRenderer = getAudioNodeRenderer(source);
|
|
8
|
+
const renderedNativeAudioNode = await audioNodeRenderer.render(source, nativeOfflineAudioContext);
|
|
9
|
+
const destination = audioNode.context.destination;
|
|
10
|
+
if (!isPartOfACycle(source) && (audioNode !== destination || !isPartOfACycle(audioNode))) {
|
|
11
|
+
renderedNativeAudioNode.connect(nativeAudioNode, output, input);
|
|
12
|
+
}
|
|
13
|
+
})).reduce((allRenderingPromises, renderingPromises) => [...allRenderingPromises, ...renderingPromises], []));
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
exports.createRenderInputsOfAudioNode = createRenderInputsOfAudioNode;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const createRenderInputsOfAudioNode = (getAudioNodeConnections, getAudioNodeRenderer, isPartOfACycle) => {
|
|
2
|
+
return async (audioNode, nativeOfflineAudioContext, nativeAudioNode) => {
|
|
3
|
+
const audioNodeConnections = getAudioNodeConnections(audioNode);
|
|
4
|
+
await Promise.all(audioNodeConnections.activeInputs.map((connections, input) => Array.from(connections).map(async ([source, output]) => {
|
|
5
|
+
const audioNodeRenderer = getAudioNodeRenderer(source);
|
|
6
|
+
const renderedNativeAudioNode = await audioNodeRenderer.render(source, nativeOfflineAudioContext);
|
|
7
|
+
const destination = audioNode.context.destination;
|
|
8
|
+
if (!isPartOfACycle(source) && (audioNode !== destination || !isPartOfACycle(audioNode))) {
|
|
9
|
+
renderedNativeAudioNode.connect(nativeAudioNode, output, input);
|
|
10
|
+
}
|
|
11
|
+
})).reduce((allRenderingPromises, renderingPromises) => [...allRenderingPromises, ...renderingPromises], []));
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
createRenderInputsOfAudioNode
|
|
16
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createRenderInputsOfAudioParam = (getAudioNodeRenderer, getAudioParamConnections, isPartOfACycle) => {
|
|
4
|
+
return async (audioParam, nativeOfflineAudioContext, nativeAudioParam) => {
|
|
5
|
+
const audioParamConnections = getAudioParamConnections(audioParam);
|
|
6
|
+
await Promise.all(Array.from(audioParamConnections.activeInputs).map(async ([source, output]) => {
|
|
7
|
+
const audioNodeRenderer = getAudioNodeRenderer(source);
|
|
8
|
+
const renderedNativeAudioNode = await audioNodeRenderer.render(source, nativeOfflineAudioContext);
|
|
9
|
+
if (!isPartOfACycle(source)) {
|
|
10
|
+
renderedNativeAudioNode.connect(nativeAudioParam, output);
|
|
11
|
+
}
|
|
12
|
+
}));
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.createRenderInputsOfAudioParam = createRenderInputsOfAudioParam;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const createRenderInputsOfAudioParam = (getAudioNodeRenderer, getAudioParamConnections, isPartOfACycle) => {
|
|
2
|
+
return async (audioParam, nativeOfflineAudioContext, nativeAudioParam) => {
|
|
3
|
+
const audioParamConnections = getAudioParamConnections(audioParam);
|
|
4
|
+
await Promise.all(Array.from(audioParamConnections.activeInputs).map(async ([source, output]) => {
|
|
5
|
+
const audioNodeRenderer = getAudioNodeRenderer(source);
|
|
6
|
+
const renderedNativeAudioNode = await audioNodeRenderer.render(source, nativeOfflineAudioContext);
|
|
7
|
+
if (!isPartOfACycle(source)) {
|
|
8
|
+
renderedNativeAudioNode.connect(nativeAudioParam, output);
|
|
9
|
+
}
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
createRenderInputsOfAudioParam
|
|
15
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const testPromiseSupport = require("../helpers/test-promise-support.cjs");
|
|
4
|
+
const createRenderNativeOfflineAudioContext = (cacheTestResult, createNativeGainNode, createNativeScriptProcessorNode, testOfflineAudioContextCurrentTimeSupport) => {
|
|
5
|
+
return (nativeOfflineAudioContext) => {
|
|
6
|
+
if (cacheTestResult(testPromiseSupport.testPromiseSupport, () => testPromiseSupport.testPromiseSupport(nativeOfflineAudioContext))) {
|
|
7
|
+
return Promise.resolve(cacheTestResult(testOfflineAudioContextCurrentTimeSupport, testOfflineAudioContextCurrentTimeSupport)).then((isOfflineAudioContextCurrentTimeSupported) => {
|
|
8
|
+
if (!isOfflineAudioContextCurrentTimeSupported) {
|
|
9
|
+
const scriptProcessorNode = createNativeScriptProcessorNode(nativeOfflineAudioContext, 512, 0, 1);
|
|
10
|
+
nativeOfflineAudioContext.oncomplete = () => {
|
|
11
|
+
scriptProcessorNode.onaudioprocess = null;
|
|
12
|
+
scriptProcessorNode.disconnect();
|
|
13
|
+
};
|
|
14
|
+
scriptProcessorNode.onaudioprocess = () => nativeOfflineAudioContext.currentTime;
|
|
15
|
+
scriptProcessorNode.connect(nativeOfflineAudioContext.destination);
|
|
16
|
+
}
|
|
17
|
+
return nativeOfflineAudioContext.startRendering();
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return new Promise((resolve) => {
|
|
21
|
+
const gainNode = createNativeGainNode(nativeOfflineAudioContext, {
|
|
22
|
+
channelCount: 1,
|
|
23
|
+
channelCountMode: "explicit",
|
|
24
|
+
channelInterpretation: "discrete",
|
|
25
|
+
gain: 0
|
|
26
|
+
});
|
|
27
|
+
nativeOfflineAudioContext.oncomplete = (event) => {
|
|
28
|
+
gainNode.disconnect();
|
|
29
|
+
resolve(event.renderedBuffer);
|
|
30
|
+
};
|
|
31
|
+
gainNode.connect(nativeOfflineAudioContext.destination);
|
|
32
|
+
nativeOfflineAudioContext.startRendering();
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
exports.createRenderNativeOfflineAudioContext = createRenderNativeOfflineAudioContext;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { testPromiseSupport } from "../helpers/test-promise-support.js";
|
|
2
|
+
const createRenderNativeOfflineAudioContext = (cacheTestResult, createNativeGainNode, createNativeScriptProcessorNode, testOfflineAudioContextCurrentTimeSupport) => {
|
|
3
|
+
return (nativeOfflineAudioContext) => {
|
|
4
|
+
if (cacheTestResult(testPromiseSupport, () => testPromiseSupport(nativeOfflineAudioContext))) {
|
|
5
|
+
return Promise.resolve(cacheTestResult(testOfflineAudioContextCurrentTimeSupport, testOfflineAudioContextCurrentTimeSupport)).then((isOfflineAudioContextCurrentTimeSupported) => {
|
|
6
|
+
if (!isOfflineAudioContextCurrentTimeSupported) {
|
|
7
|
+
const scriptProcessorNode = createNativeScriptProcessorNode(nativeOfflineAudioContext, 512, 0, 1);
|
|
8
|
+
nativeOfflineAudioContext.oncomplete = () => {
|
|
9
|
+
scriptProcessorNode.onaudioprocess = null;
|
|
10
|
+
scriptProcessorNode.disconnect();
|
|
11
|
+
};
|
|
12
|
+
scriptProcessorNode.onaudioprocess = () => nativeOfflineAudioContext.currentTime;
|
|
13
|
+
scriptProcessorNode.connect(nativeOfflineAudioContext.destination);
|
|
14
|
+
}
|
|
15
|
+
return nativeOfflineAudioContext.startRendering();
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return new Promise((resolve) => {
|
|
19
|
+
const gainNode = createNativeGainNode(nativeOfflineAudioContext, {
|
|
20
|
+
channelCount: 1,
|
|
21
|
+
channelCountMode: "explicit",
|
|
22
|
+
channelInterpretation: "discrete",
|
|
23
|
+
gain: 0
|
|
24
|
+
});
|
|
25
|
+
nativeOfflineAudioContext.oncomplete = (event) => {
|
|
26
|
+
gainNode.disconnect();
|
|
27
|
+
resolve(event.renderedBuffer);
|
|
28
|
+
};
|
|
29
|
+
gainNode.connect(nativeOfflineAudioContext.destination);
|
|
30
|
+
nativeOfflineAudioContext.startRendering();
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
createRenderNativeOfflineAudioContext
|
|
36
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createSetAudioNodeTailTime = (audioNodeTailTimeStore) => {
|
|
4
|
+
return (audioNode, tailTime) => audioNodeTailTimeStore.set(audioNode, tailTime);
|
|
5
|
+
};
|
|
6
|
+
exports.createSetAudioNodeTailTime = createSetAudioNodeTailTime;
|
package/dist/node_modules/standardized-audio-context/build/es2019/factories/start-rendering.cjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const wrapAudioBufferGetChannelDataMethod = require("../helpers/wrap-audio-buffer-get-channel-data-method.cjs");
|
|
4
|
+
const createStartRendering = (audioBufferStore, cacheTestResult, getAudioNodeRenderer, getUnrenderedAudioWorkletNodes, renderNativeOfflineAudioContext, testAudioBufferCopyChannelMethodsOutOfBoundsSupport, wrapAudioBufferCopyChannelMethods, wrapAudioBufferCopyChannelMethodsOutOfBounds) => {
|
|
5
|
+
return (destination, nativeOfflineAudioContext) => getAudioNodeRenderer(destination).render(destination, nativeOfflineAudioContext).then(() => Promise.all(Array.from(getUnrenderedAudioWorkletNodes(nativeOfflineAudioContext)).map((audioWorkletNode) => getAudioNodeRenderer(audioWorkletNode).render(audioWorkletNode, nativeOfflineAudioContext)))).then(() => renderNativeOfflineAudioContext(nativeOfflineAudioContext)).then((audioBuffer) => {
|
|
6
|
+
if (typeof audioBuffer.copyFromChannel !== "function") {
|
|
7
|
+
wrapAudioBufferCopyChannelMethods(audioBuffer);
|
|
8
|
+
wrapAudioBufferGetChannelDataMethod.wrapAudioBufferGetChannelDataMethod(audioBuffer);
|
|
9
|
+
} else if (!cacheTestResult(testAudioBufferCopyChannelMethodsOutOfBoundsSupport, () => testAudioBufferCopyChannelMethodsOutOfBoundsSupport(audioBuffer))) {
|
|
10
|
+
wrapAudioBufferCopyChannelMethodsOutOfBounds(audioBuffer);
|
|
11
|
+
}
|
|
12
|
+
audioBufferStore.add(audioBuffer);
|
|
13
|
+
return audioBuffer;
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
exports.createStartRendering = createStartRendering;
|
package/dist/node_modules/standardized-audio-context/build/es2019/factories/start-rendering.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { wrapAudioBufferGetChannelDataMethod } from "../helpers/wrap-audio-buffer-get-channel-data-method.js";
|
|
2
|
+
const createStartRendering = (audioBufferStore, cacheTestResult, getAudioNodeRenderer, getUnrenderedAudioWorkletNodes, renderNativeOfflineAudioContext, testAudioBufferCopyChannelMethodsOutOfBoundsSupport, wrapAudioBufferCopyChannelMethods, wrapAudioBufferCopyChannelMethodsOutOfBounds) => {
|
|
3
|
+
return (destination, nativeOfflineAudioContext) => getAudioNodeRenderer(destination).render(destination, nativeOfflineAudioContext).then(() => Promise.all(Array.from(getUnrenderedAudioWorkletNodes(nativeOfflineAudioContext)).map((audioWorkletNode) => getAudioNodeRenderer(audioWorkletNode).render(audioWorkletNode, nativeOfflineAudioContext)))).then(() => renderNativeOfflineAudioContext(nativeOfflineAudioContext)).then((audioBuffer) => {
|
|
4
|
+
if (typeof audioBuffer.copyFromChannel !== "function") {
|
|
5
|
+
wrapAudioBufferCopyChannelMethods(audioBuffer);
|
|
6
|
+
wrapAudioBufferGetChannelDataMethod(audioBuffer);
|
|
7
|
+
} else if (!cacheTestResult(testAudioBufferCopyChannelMethodsOutOfBoundsSupport, () => testAudioBufferCopyChannelMethodsOutOfBoundsSupport(audioBuffer))) {
|
|
8
|
+
wrapAudioBufferCopyChannelMethodsOutOfBounds(audioBuffer);
|
|
9
|
+
}
|
|
10
|
+
audioBufferStore.add(audioBuffer);
|
|
11
|
+
return audioBuffer;
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
createStartRendering
|
|
16
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const DEFAULT_OPTIONS = {
|
|
4
|
+
channelCount: 2,
|
|
5
|
+
/*
|
|
6
|
+
* Bug #105: The channelCountMode should be 'clamped-max' according to the spec but is set to 'explicit' to achieve consistent
|
|
7
|
+
* behavior.
|
|
8
|
+
*/
|
|
9
|
+
channelCountMode: "explicit",
|
|
10
|
+
channelInterpretation: "speakers",
|
|
11
|
+
pan: 0
|
|
12
|
+
};
|
|
13
|
+
const createStereoPannerNodeConstructor = (audioNodeConstructor, createAudioParam, createNativeStereoPannerNode, createStereoPannerNodeRenderer, getNativeContext, isNativeOfflineAudioContext) => {
|
|
14
|
+
return class StereoPannerNode extends audioNodeConstructor {
|
|
15
|
+
constructor(context, options) {
|
|
16
|
+
const nativeContext = getNativeContext(context);
|
|
17
|
+
const mergedOptions = { ...DEFAULT_OPTIONS, ...options };
|
|
18
|
+
const nativeStereoPannerNode = createNativeStereoPannerNode(nativeContext, mergedOptions);
|
|
19
|
+
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
20
|
+
const stereoPannerNodeRenderer = isOffline ? createStereoPannerNodeRenderer() : null;
|
|
21
|
+
super(context, false, nativeStereoPannerNode, stereoPannerNodeRenderer);
|
|
22
|
+
this._pan = createAudioParam(this, isOffline, nativeStereoPannerNode.pan);
|
|
23
|
+
}
|
|
24
|
+
get pan() {
|
|
25
|
+
return this._pan;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
exports.createStereoPannerNodeConstructor = createStereoPannerNodeConstructor;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const DEFAULT_OPTIONS = {
|
|
2
|
+
channelCount: 2,
|
|
3
|
+
/*
|
|
4
|
+
* Bug #105: The channelCountMode should be 'clamped-max' according to the spec but is set to 'explicit' to achieve consistent
|
|
5
|
+
* behavior.
|
|
6
|
+
*/
|
|
7
|
+
channelCountMode: "explicit",
|
|
8
|
+
channelInterpretation: "speakers",
|
|
9
|
+
pan: 0
|
|
10
|
+
};
|
|
11
|
+
const createStereoPannerNodeConstructor = (audioNodeConstructor, createAudioParam, createNativeStereoPannerNode, createStereoPannerNodeRenderer, getNativeContext, isNativeOfflineAudioContext) => {
|
|
12
|
+
return class StereoPannerNode extends audioNodeConstructor {
|
|
13
|
+
constructor(context, options) {
|
|
14
|
+
const nativeContext = getNativeContext(context);
|
|
15
|
+
const mergedOptions = { ...DEFAULT_OPTIONS, ...options };
|
|
16
|
+
const nativeStereoPannerNode = createNativeStereoPannerNode(nativeContext, mergedOptions);
|
|
17
|
+
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
18
|
+
const stereoPannerNodeRenderer = isOffline ? createStereoPannerNodeRenderer() : null;
|
|
19
|
+
super(context, false, nativeStereoPannerNode, stereoPannerNodeRenderer);
|
|
20
|
+
this._pan = createAudioParam(this, isOffline, nativeStereoPannerNode.pan);
|
|
21
|
+
}
|
|
22
|
+
get pan() {
|
|
23
|
+
return this._pan;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
createStereoPannerNodeConstructor
|
|
29
|
+
};
|