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,277 @@
|
|
|
1
|
+
import { assignNativeAudioNodeOptions } from "../helpers/assign-native-audio-node-options.js";
|
|
2
|
+
import { interceptConnections } from "../helpers/intercept-connections.js";
|
|
3
|
+
const createNativePannerNodeFakerFactory = (connectNativeAudioNodeToNativeAudioNode, createInvalidStateError, createNativeChannelMergerNode, createNativeGainNode, createNativeScriptProcessorNode, createNativeWaveShaperNode, createNotSupportedError, disconnectNativeAudioNodeFromNativeAudioNode, getFirstSample, monitorConnections) => {
|
|
4
|
+
return (nativeContext, { coneInnerAngle, coneOuterAngle, coneOuterGain, distanceModel, maxDistance, orientationX, orientationY, orientationZ, panningModel, positionX, positionY, positionZ, refDistance, rolloffFactor, ...audioNodeOptions }) => {
|
|
5
|
+
const pannerNode = nativeContext.createPanner();
|
|
6
|
+
if (audioNodeOptions.channelCount > 2) {
|
|
7
|
+
throw createNotSupportedError();
|
|
8
|
+
}
|
|
9
|
+
if (audioNodeOptions.channelCountMode === "max") {
|
|
10
|
+
throw createNotSupportedError();
|
|
11
|
+
}
|
|
12
|
+
assignNativeAudioNodeOptions(pannerNode, audioNodeOptions);
|
|
13
|
+
const SINGLE_CHANNEL_OPTIONS = {
|
|
14
|
+
channelCount: 1,
|
|
15
|
+
channelCountMode: "explicit",
|
|
16
|
+
channelInterpretation: "discrete"
|
|
17
|
+
};
|
|
18
|
+
const channelMergerNode = createNativeChannelMergerNode(nativeContext, {
|
|
19
|
+
...SINGLE_CHANNEL_OPTIONS,
|
|
20
|
+
channelInterpretation: "speakers",
|
|
21
|
+
numberOfInputs: 6
|
|
22
|
+
});
|
|
23
|
+
const inputGainNode = createNativeGainNode(nativeContext, { ...audioNodeOptions, gain: 1 });
|
|
24
|
+
const orientationXGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 1 });
|
|
25
|
+
const orientationYGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
|
|
26
|
+
const orientationZGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
|
|
27
|
+
const positionXGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
|
|
28
|
+
const positionYGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
|
|
29
|
+
const positionZGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
|
|
30
|
+
const scriptProcessorNode = createNativeScriptProcessorNode(nativeContext, 256, 6, 1);
|
|
31
|
+
const waveShaperNode = createNativeWaveShaperNode(nativeContext, {
|
|
32
|
+
...SINGLE_CHANNEL_OPTIONS,
|
|
33
|
+
curve: new Float32Array([1, 1]),
|
|
34
|
+
oversample: "none"
|
|
35
|
+
});
|
|
36
|
+
let lastOrientation = [orientationX, orientationY, orientationZ];
|
|
37
|
+
let lastPosition = [positionX, positionY, positionZ];
|
|
38
|
+
const buffer = new Float32Array(1);
|
|
39
|
+
scriptProcessorNode.onaudioprocess = ({ inputBuffer }) => {
|
|
40
|
+
const orientation = [
|
|
41
|
+
getFirstSample(inputBuffer, buffer, 0),
|
|
42
|
+
getFirstSample(inputBuffer, buffer, 1),
|
|
43
|
+
getFirstSample(inputBuffer, buffer, 2)
|
|
44
|
+
];
|
|
45
|
+
if (orientation.some((value, index) => value !== lastOrientation[index])) {
|
|
46
|
+
pannerNode.setOrientation(...orientation);
|
|
47
|
+
lastOrientation = orientation;
|
|
48
|
+
}
|
|
49
|
+
const positon = [
|
|
50
|
+
getFirstSample(inputBuffer, buffer, 3),
|
|
51
|
+
getFirstSample(inputBuffer, buffer, 4),
|
|
52
|
+
getFirstSample(inputBuffer, buffer, 5)
|
|
53
|
+
];
|
|
54
|
+
if (positon.some((value, index) => value !== lastPosition[index])) {
|
|
55
|
+
pannerNode.setPosition(...positon);
|
|
56
|
+
lastPosition = positon;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
Object.defineProperty(orientationYGainNode.gain, "defaultValue", { get: () => 0 });
|
|
60
|
+
Object.defineProperty(orientationZGainNode.gain, "defaultValue", { get: () => 0 });
|
|
61
|
+
Object.defineProperty(positionXGainNode.gain, "defaultValue", { get: () => 0 });
|
|
62
|
+
Object.defineProperty(positionYGainNode.gain, "defaultValue", { get: () => 0 });
|
|
63
|
+
Object.defineProperty(positionZGainNode.gain, "defaultValue", { get: () => 0 });
|
|
64
|
+
const nativePannerNodeFaker = {
|
|
65
|
+
get bufferSize() {
|
|
66
|
+
return void 0;
|
|
67
|
+
},
|
|
68
|
+
get channelCount() {
|
|
69
|
+
return pannerNode.channelCount;
|
|
70
|
+
},
|
|
71
|
+
set channelCount(value) {
|
|
72
|
+
if (value > 2) {
|
|
73
|
+
throw createNotSupportedError();
|
|
74
|
+
}
|
|
75
|
+
inputGainNode.channelCount = value;
|
|
76
|
+
pannerNode.channelCount = value;
|
|
77
|
+
},
|
|
78
|
+
get channelCountMode() {
|
|
79
|
+
return pannerNode.channelCountMode;
|
|
80
|
+
},
|
|
81
|
+
set channelCountMode(value) {
|
|
82
|
+
if (value === "max") {
|
|
83
|
+
throw createNotSupportedError();
|
|
84
|
+
}
|
|
85
|
+
inputGainNode.channelCountMode = value;
|
|
86
|
+
pannerNode.channelCountMode = value;
|
|
87
|
+
},
|
|
88
|
+
get channelInterpretation() {
|
|
89
|
+
return pannerNode.channelInterpretation;
|
|
90
|
+
},
|
|
91
|
+
set channelInterpretation(value) {
|
|
92
|
+
inputGainNode.channelInterpretation = value;
|
|
93
|
+
pannerNode.channelInterpretation = value;
|
|
94
|
+
},
|
|
95
|
+
get coneInnerAngle() {
|
|
96
|
+
return pannerNode.coneInnerAngle;
|
|
97
|
+
},
|
|
98
|
+
set coneInnerAngle(value) {
|
|
99
|
+
pannerNode.coneInnerAngle = value;
|
|
100
|
+
},
|
|
101
|
+
get coneOuterAngle() {
|
|
102
|
+
return pannerNode.coneOuterAngle;
|
|
103
|
+
},
|
|
104
|
+
set coneOuterAngle(value) {
|
|
105
|
+
pannerNode.coneOuterAngle = value;
|
|
106
|
+
},
|
|
107
|
+
get coneOuterGain() {
|
|
108
|
+
return pannerNode.coneOuterGain;
|
|
109
|
+
},
|
|
110
|
+
set coneOuterGain(value) {
|
|
111
|
+
if (value < 0 || value > 1) {
|
|
112
|
+
throw createInvalidStateError();
|
|
113
|
+
}
|
|
114
|
+
pannerNode.coneOuterGain = value;
|
|
115
|
+
},
|
|
116
|
+
get context() {
|
|
117
|
+
return pannerNode.context;
|
|
118
|
+
},
|
|
119
|
+
get distanceModel() {
|
|
120
|
+
return pannerNode.distanceModel;
|
|
121
|
+
},
|
|
122
|
+
set distanceModel(value) {
|
|
123
|
+
pannerNode.distanceModel = value;
|
|
124
|
+
},
|
|
125
|
+
get inputs() {
|
|
126
|
+
return [inputGainNode];
|
|
127
|
+
},
|
|
128
|
+
get maxDistance() {
|
|
129
|
+
return pannerNode.maxDistance;
|
|
130
|
+
},
|
|
131
|
+
set maxDistance(value) {
|
|
132
|
+
if (value < 0) {
|
|
133
|
+
throw new RangeError();
|
|
134
|
+
}
|
|
135
|
+
pannerNode.maxDistance = value;
|
|
136
|
+
},
|
|
137
|
+
get numberOfInputs() {
|
|
138
|
+
return pannerNode.numberOfInputs;
|
|
139
|
+
},
|
|
140
|
+
get numberOfOutputs() {
|
|
141
|
+
return pannerNode.numberOfOutputs;
|
|
142
|
+
},
|
|
143
|
+
get orientationX() {
|
|
144
|
+
return orientationXGainNode.gain;
|
|
145
|
+
},
|
|
146
|
+
get orientationY() {
|
|
147
|
+
return orientationYGainNode.gain;
|
|
148
|
+
},
|
|
149
|
+
get orientationZ() {
|
|
150
|
+
return orientationZGainNode.gain;
|
|
151
|
+
},
|
|
152
|
+
get panningModel() {
|
|
153
|
+
return pannerNode.panningModel;
|
|
154
|
+
},
|
|
155
|
+
set panningModel(value) {
|
|
156
|
+
pannerNode.panningModel = value;
|
|
157
|
+
},
|
|
158
|
+
get positionX() {
|
|
159
|
+
return positionXGainNode.gain;
|
|
160
|
+
},
|
|
161
|
+
get positionY() {
|
|
162
|
+
return positionYGainNode.gain;
|
|
163
|
+
},
|
|
164
|
+
get positionZ() {
|
|
165
|
+
return positionZGainNode.gain;
|
|
166
|
+
},
|
|
167
|
+
get refDistance() {
|
|
168
|
+
return pannerNode.refDistance;
|
|
169
|
+
},
|
|
170
|
+
set refDistance(value) {
|
|
171
|
+
if (value < 0) {
|
|
172
|
+
throw new RangeError();
|
|
173
|
+
}
|
|
174
|
+
pannerNode.refDistance = value;
|
|
175
|
+
},
|
|
176
|
+
get rolloffFactor() {
|
|
177
|
+
return pannerNode.rolloffFactor;
|
|
178
|
+
},
|
|
179
|
+
set rolloffFactor(value) {
|
|
180
|
+
if (value < 0) {
|
|
181
|
+
throw new RangeError();
|
|
182
|
+
}
|
|
183
|
+
pannerNode.rolloffFactor = value;
|
|
184
|
+
},
|
|
185
|
+
addEventListener(...args) {
|
|
186
|
+
return inputGainNode.addEventListener(args[0], args[1], args[2]);
|
|
187
|
+
},
|
|
188
|
+
dispatchEvent(...args) {
|
|
189
|
+
return inputGainNode.dispatchEvent(args[0]);
|
|
190
|
+
},
|
|
191
|
+
removeEventListener(...args) {
|
|
192
|
+
return inputGainNode.removeEventListener(args[0], args[1], args[2]);
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
if (coneInnerAngle !== nativePannerNodeFaker.coneInnerAngle) {
|
|
196
|
+
nativePannerNodeFaker.coneInnerAngle = coneInnerAngle;
|
|
197
|
+
}
|
|
198
|
+
if (coneOuterAngle !== nativePannerNodeFaker.coneOuterAngle) {
|
|
199
|
+
nativePannerNodeFaker.coneOuterAngle = coneOuterAngle;
|
|
200
|
+
}
|
|
201
|
+
if (coneOuterGain !== nativePannerNodeFaker.coneOuterGain) {
|
|
202
|
+
nativePannerNodeFaker.coneOuterGain = coneOuterGain;
|
|
203
|
+
}
|
|
204
|
+
if (distanceModel !== nativePannerNodeFaker.distanceModel) {
|
|
205
|
+
nativePannerNodeFaker.distanceModel = distanceModel;
|
|
206
|
+
}
|
|
207
|
+
if (maxDistance !== nativePannerNodeFaker.maxDistance) {
|
|
208
|
+
nativePannerNodeFaker.maxDistance = maxDistance;
|
|
209
|
+
}
|
|
210
|
+
if (orientationX !== nativePannerNodeFaker.orientationX.value) {
|
|
211
|
+
nativePannerNodeFaker.orientationX.value = orientationX;
|
|
212
|
+
}
|
|
213
|
+
if (orientationY !== nativePannerNodeFaker.orientationY.value) {
|
|
214
|
+
nativePannerNodeFaker.orientationY.value = orientationY;
|
|
215
|
+
}
|
|
216
|
+
if (orientationZ !== nativePannerNodeFaker.orientationZ.value) {
|
|
217
|
+
nativePannerNodeFaker.orientationZ.value = orientationZ;
|
|
218
|
+
}
|
|
219
|
+
if (panningModel !== nativePannerNodeFaker.panningModel) {
|
|
220
|
+
nativePannerNodeFaker.panningModel = panningModel;
|
|
221
|
+
}
|
|
222
|
+
if (positionX !== nativePannerNodeFaker.positionX.value) {
|
|
223
|
+
nativePannerNodeFaker.positionX.value = positionX;
|
|
224
|
+
}
|
|
225
|
+
if (positionY !== nativePannerNodeFaker.positionY.value) {
|
|
226
|
+
nativePannerNodeFaker.positionY.value = positionY;
|
|
227
|
+
}
|
|
228
|
+
if (positionZ !== nativePannerNodeFaker.positionZ.value) {
|
|
229
|
+
nativePannerNodeFaker.positionZ.value = positionZ;
|
|
230
|
+
}
|
|
231
|
+
if (refDistance !== nativePannerNodeFaker.refDistance) {
|
|
232
|
+
nativePannerNodeFaker.refDistance = refDistance;
|
|
233
|
+
}
|
|
234
|
+
if (rolloffFactor !== nativePannerNodeFaker.rolloffFactor) {
|
|
235
|
+
nativePannerNodeFaker.rolloffFactor = rolloffFactor;
|
|
236
|
+
}
|
|
237
|
+
if (lastOrientation[0] !== 1 || lastOrientation[1] !== 0 || lastOrientation[2] !== 0) {
|
|
238
|
+
pannerNode.setOrientation(...lastOrientation);
|
|
239
|
+
}
|
|
240
|
+
if (lastPosition[0] !== 0 || lastPosition[1] !== 0 || lastPosition[2] !== 0) {
|
|
241
|
+
pannerNode.setPosition(...lastPosition);
|
|
242
|
+
}
|
|
243
|
+
const whenConnected = () => {
|
|
244
|
+
inputGainNode.connect(pannerNode);
|
|
245
|
+
connectNativeAudioNodeToNativeAudioNode(inputGainNode, waveShaperNode, 0, 0);
|
|
246
|
+
waveShaperNode.connect(orientationXGainNode).connect(channelMergerNode, 0, 0);
|
|
247
|
+
waveShaperNode.connect(orientationYGainNode).connect(channelMergerNode, 0, 1);
|
|
248
|
+
waveShaperNode.connect(orientationZGainNode).connect(channelMergerNode, 0, 2);
|
|
249
|
+
waveShaperNode.connect(positionXGainNode).connect(channelMergerNode, 0, 3);
|
|
250
|
+
waveShaperNode.connect(positionYGainNode).connect(channelMergerNode, 0, 4);
|
|
251
|
+
waveShaperNode.connect(positionZGainNode).connect(channelMergerNode, 0, 5);
|
|
252
|
+
channelMergerNode.connect(scriptProcessorNode).connect(nativeContext.destination);
|
|
253
|
+
};
|
|
254
|
+
const whenDisconnected = () => {
|
|
255
|
+
inputGainNode.disconnect(pannerNode);
|
|
256
|
+
disconnectNativeAudioNodeFromNativeAudioNode(inputGainNode, waveShaperNode, 0, 0);
|
|
257
|
+
waveShaperNode.disconnect(orientationXGainNode);
|
|
258
|
+
orientationXGainNode.disconnect(channelMergerNode);
|
|
259
|
+
waveShaperNode.disconnect(orientationYGainNode);
|
|
260
|
+
orientationYGainNode.disconnect(channelMergerNode);
|
|
261
|
+
waveShaperNode.disconnect(orientationZGainNode);
|
|
262
|
+
orientationZGainNode.disconnect(channelMergerNode);
|
|
263
|
+
waveShaperNode.disconnect(positionXGainNode);
|
|
264
|
+
positionXGainNode.disconnect(channelMergerNode);
|
|
265
|
+
waveShaperNode.disconnect(positionYGainNode);
|
|
266
|
+
positionYGainNode.disconnect(channelMergerNode);
|
|
267
|
+
waveShaperNode.disconnect(positionZGainNode);
|
|
268
|
+
positionZGainNode.disconnect(channelMergerNode);
|
|
269
|
+
channelMergerNode.disconnect(scriptProcessorNode);
|
|
270
|
+
scriptProcessorNode.disconnect(nativeContext.destination);
|
|
271
|
+
};
|
|
272
|
+
return monitorConnections(interceptConnections(nativePannerNodeFaker, pannerNode), whenConnected, whenDisconnected);
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
export {
|
|
276
|
+
createNativePannerNodeFakerFactory
|
|
277
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createNativePeriodicWaveFactory = (createIndexSizeError) => {
|
|
4
|
+
return (nativeContext, { disableNormalization, imag, real }) => {
|
|
5
|
+
const convertedImag = imag instanceof Float32Array ? imag : new Float32Array(imag);
|
|
6
|
+
const convertedReal = real instanceof Float32Array ? real : new Float32Array(real);
|
|
7
|
+
const nativePeriodicWave = nativeContext.createPeriodicWave(convertedReal, convertedImag, { disableNormalization });
|
|
8
|
+
if (Array.from(imag).length < 2) {
|
|
9
|
+
throw createIndexSizeError();
|
|
10
|
+
}
|
|
11
|
+
return nativePeriodicWave;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
exports.createNativePeriodicWaveFactory = createNativePeriodicWaveFactory;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const createNativePeriodicWaveFactory = (createIndexSizeError) => {
|
|
2
|
+
return (nativeContext, { disableNormalization, imag, real }) => {
|
|
3
|
+
const convertedImag = imag instanceof Float32Array ? imag : new Float32Array(imag);
|
|
4
|
+
const convertedReal = real instanceof Float32Array ? real : new Float32Array(real);
|
|
5
|
+
const nativePeriodicWave = nativeContext.createPeriodicWave(convertedReal, convertedImag, { disableNormalization });
|
|
6
|
+
if (Array.from(imag).length < 2) {
|
|
7
|
+
throw createIndexSizeError();
|
|
8
|
+
}
|
|
9
|
+
return nativePeriodicWave;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
createNativePeriodicWaveFactory
|
|
14
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createNativeScriptProcessorNode = (nativeContext, bufferSize, numberOfInputChannels, numberOfOutputChannels) => {
|
|
4
|
+
return nativeContext.createScriptProcessor(bufferSize, numberOfInputChannels, numberOfOutputChannels);
|
|
5
|
+
};
|
|
6
|
+
exports.createNativeScriptProcessorNode = createNativeScriptProcessorNode;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const createNativeScriptProcessorNode = (nativeContext, bufferSize, numberOfInputChannels, numberOfOutputChannels) => {
|
|
2
|
+
return nativeContext.createScriptProcessor(bufferSize, numberOfInputChannels, numberOfOutputChannels);
|
|
3
|
+
};
|
|
4
|
+
export {
|
|
5
|
+
createNativeScriptProcessorNode
|
|
6
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const assignNativeAudioNodeAudioParamValue = require("../helpers/assign-native-audio-node-audio-param-value.cjs");
|
|
4
|
+
const assignNativeAudioNodeOptions = require("../helpers/assign-native-audio-node-options.cjs");
|
|
5
|
+
const createNativeStereoPannerNodeFactory = (createNativeStereoPannerNodeFaker, createNotSupportedError) => {
|
|
6
|
+
return (nativeContext, options) => {
|
|
7
|
+
const channelCountMode = options.channelCountMode;
|
|
8
|
+
if (channelCountMode === "clamped-max") {
|
|
9
|
+
throw createNotSupportedError();
|
|
10
|
+
}
|
|
11
|
+
if (nativeContext.createStereoPanner === void 0) {
|
|
12
|
+
return createNativeStereoPannerNodeFaker(nativeContext, options);
|
|
13
|
+
}
|
|
14
|
+
const nativeStereoPannerNode = nativeContext.createStereoPanner();
|
|
15
|
+
assignNativeAudioNodeOptions.assignNativeAudioNodeOptions(nativeStereoPannerNode, options);
|
|
16
|
+
assignNativeAudioNodeAudioParamValue.assignNativeAudioNodeAudioParamValue(nativeStereoPannerNode, options, "pan");
|
|
17
|
+
Object.defineProperty(nativeStereoPannerNode, "channelCountMode", {
|
|
18
|
+
get: () => channelCountMode,
|
|
19
|
+
set: (value) => {
|
|
20
|
+
if (value !== channelCountMode) {
|
|
21
|
+
throw createNotSupportedError();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
return nativeStereoPannerNode;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
exports.createNativeStereoPannerNodeFactory = createNativeStereoPannerNodeFactory;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { assignNativeAudioNodeAudioParamValue } from "../helpers/assign-native-audio-node-audio-param-value.js";
|
|
2
|
+
import { assignNativeAudioNodeOptions } from "../helpers/assign-native-audio-node-options.js";
|
|
3
|
+
const createNativeStereoPannerNodeFactory = (createNativeStereoPannerNodeFaker, createNotSupportedError) => {
|
|
4
|
+
return (nativeContext, options) => {
|
|
5
|
+
const channelCountMode = options.channelCountMode;
|
|
6
|
+
if (channelCountMode === "clamped-max") {
|
|
7
|
+
throw createNotSupportedError();
|
|
8
|
+
}
|
|
9
|
+
if (nativeContext.createStereoPanner === void 0) {
|
|
10
|
+
return createNativeStereoPannerNodeFaker(nativeContext, options);
|
|
11
|
+
}
|
|
12
|
+
const nativeStereoPannerNode = nativeContext.createStereoPanner();
|
|
13
|
+
assignNativeAudioNodeOptions(nativeStereoPannerNode, options);
|
|
14
|
+
assignNativeAudioNodeAudioParamValue(nativeStereoPannerNode, options, "pan");
|
|
15
|
+
Object.defineProperty(nativeStereoPannerNode, "channelCountMode", {
|
|
16
|
+
get: () => channelCountMode,
|
|
17
|
+
set: (value) => {
|
|
18
|
+
if (value !== channelCountMode) {
|
|
19
|
+
throw createNotSupportedError();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
return nativeStereoPannerNode;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
createNativeStereoPannerNodeFactory
|
|
28
|
+
};
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const interceptConnections = require("../helpers/intercept-connections.cjs");
|
|
4
|
+
const createNativeStereoPannerNodeFakerFactory = (createNativeChannelMergerNode, createNativeChannelSplitterNode, createNativeGainNode, createNativeWaveShaperNode, createNotSupportedError, monitorConnections) => {
|
|
5
|
+
const CURVE_SIZE = 16385;
|
|
6
|
+
const DC_CURVE = new Float32Array([1, 1]);
|
|
7
|
+
const HALF_PI = Math.PI / 2;
|
|
8
|
+
const SINGLE_CHANNEL_OPTIONS = { channelCount: 1, channelCountMode: "explicit", channelInterpretation: "discrete" };
|
|
9
|
+
const SINGLE_CHANNEL_WAVE_SHAPER_OPTIONS = { ...SINGLE_CHANNEL_OPTIONS, oversample: "none" };
|
|
10
|
+
const buildInternalGraphForMono = (nativeContext, inputGainNode, panGainNode, channelMergerNode) => {
|
|
11
|
+
const leftWaveShaperCurve = new Float32Array(CURVE_SIZE);
|
|
12
|
+
const rightWaveShaperCurve = new Float32Array(CURVE_SIZE);
|
|
13
|
+
for (let i = 0; i < CURVE_SIZE; i += 1) {
|
|
14
|
+
const x = i / (CURVE_SIZE - 1) * HALF_PI;
|
|
15
|
+
leftWaveShaperCurve[i] = Math.cos(x);
|
|
16
|
+
rightWaveShaperCurve[i] = Math.sin(x);
|
|
17
|
+
}
|
|
18
|
+
const leftGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
|
|
19
|
+
const leftWaveShaperNode = createNativeWaveShaperNode(nativeContext, { ...SINGLE_CHANNEL_WAVE_SHAPER_OPTIONS, curve: leftWaveShaperCurve });
|
|
20
|
+
const panWaveShaperNode = createNativeWaveShaperNode(nativeContext, { ...SINGLE_CHANNEL_WAVE_SHAPER_OPTIONS, curve: DC_CURVE });
|
|
21
|
+
const rightGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
|
|
22
|
+
const rightWaveShaperNode = createNativeWaveShaperNode(nativeContext, { ...SINGLE_CHANNEL_WAVE_SHAPER_OPTIONS, curve: rightWaveShaperCurve });
|
|
23
|
+
return {
|
|
24
|
+
connectGraph() {
|
|
25
|
+
inputGainNode.connect(leftGainNode);
|
|
26
|
+
inputGainNode.connect(panWaveShaperNode.inputs === void 0 ? panWaveShaperNode : panWaveShaperNode.inputs[0]);
|
|
27
|
+
inputGainNode.connect(rightGainNode);
|
|
28
|
+
panWaveShaperNode.connect(panGainNode);
|
|
29
|
+
panGainNode.connect(leftWaveShaperNode.inputs === void 0 ? leftWaveShaperNode : leftWaveShaperNode.inputs[0]);
|
|
30
|
+
panGainNode.connect(rightWaveShaperNode.inputs === void 0 ? rightWaveShaperNode : rightWaveShaperNode.inputs[0]);
|
|
31
|
+
leftWaveShaperNode.connect(leftGainNode.gain);
|
|
32
|
+
rightWaveShaperNode.connect(rightGainNode.gain);
|
|
33
|
+
leftGainNode.connect(channelMergerNode, 0, 0);
|
|
34
|
+
rightGainNode.connect(channelMergerNode, 0, 1);
|
|
35
|
+
},
|
|
36
|
+
disconnectGraph() {
|
|
37
|
+
inputGainNode.disconnect(leftGainNode);
|
|
38
|
+
inputGainNode.disconnect(panWaveShaperNode.inputs === void 0 ? panWaveShaperNode : panWaveShaperNode.inputs[0]);
|
|
39
|
+
inputGainNode.disconnect(rightGainNode);
|
|
40
|
+
panWaveShaperNode.disconnect(panGainNode);
|
|
41
|
+
panGainNode.disconnect(leftWaveShaperNode.inputs === void 0 ? leftWaveShaperNode : leftWaveShaperNode.inputs[0]);
|
|
42
|
+
panGainNode.disconnect(rightWaveShaperNode.inputs === void 0 ? rightWaveShaperNode : rightWaveShaperNode.inputs[0]);
|
|
43
|
+
leftWaveShaperNode.disconnect(leftGainNode.gain);
|
|
44
|
+
rightWaveShaperNode.disconnect(rightGainNode.gain);
|
|
45
|
+
leftGainNode.disconnect(channelMergerNode, 0, 0);
|
|
46
|
+
rightGainNode.disconnect(channelMergerNode, 0, 1);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
const buildInternalGraphForStereo = (nativeContext, inputGainNode, panGainNode, channelMergerNode) => {
|
|
51
|
+
const leftInputForLeftOutputWaveShaperCurve = new Float32Array(CURVE_SIZE);
|
|
52
|
+
const leftInputForRightOutputWaveShaperCurve = new Float32Array(CURVE_SIZE);
|
|
53
|
+
const rightInputForLeftOutputWaveShaperCurve = new Float32Array(CURVE_SIZE);
|
|
54
|
+
const rightInputForRightOutputWaveShaperCurve = new Float32Array(CURVE_SIZE);
|
|
55
|
+
const centerIndex = Math.floor(CURVE_SIZE / 2);
|
|
56
|
+
for (let i = 0; i < CURVE_SIZE; i += 1) {
|
|
57
|
+
if (i > centerIndex) {
|
|
58
|
+
const x = (i - centerIndex) / (CURVE_SIZE - 1 - centerIndex) * HALF_PI;
|
|
59
|
+
leftInputForLeftOutputWaveShaperCurve[i] = Math.cos(x);
|
|
60
|
+
leftInputForRightOutputWaveShaperCurve[i] = Math.sin(x);
|
|
61
|
+
rightInputForLeftOutputWaveShaperCurve[i] = 0;
|
|
62
|
+
rightInputForRightOutputWaveShaperCurve[i] = 1;
|
|
63
|
+
} else {
|
|
64
|
+
const x = i / (CURVE_SIZE - 1 - centerIndex) * HALF_PI;
|
|
65
|
+
leftInputForLeftOutputWaveShaperCurve[i] = 1;
|
|
66
|
+
leftInputForRightOutputWaveShaperCurve[i] = 0;
|
|
67
|
+
rightInputForLeftOutputWaveShaperCurve[i] = Math.cos(x);
|
|
68
|
+
rightInputForRightOutputWaveShaperCurve[i] = Math.sin(x);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
const channelSplitterNode = createNativeChannelSplitterNode(nativeContext, {
|
|
72
|
+
channelCount: 2,
|
|
73
|
+
channelCountMode: "explicit",
|
|
74
|
+
channelInterpretation: "discrete",
|
|
75
|
+
numberOfOutputs: 2
|
|
76
|
+
});
|
|
77
|
+
const leftInputForLeftOutputGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
|
|
78
|
+
const leftInputForLeftOutputWaveShaperNode = createNativeWaveShaperNode(nativeContext, {
|
|
79
|
+
...SINGLE_CHANNEL_WAVE_SHAPER_OPTIONS,
|
|
80
|
+
curve: leftInputForLeftOutputWaveShaperCurve
|
|
81
|
+
});
|
|
82
|
+
const leftInputForRightOutputGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
|
|
83
|
+
const leftInputForRightOutputWaveShaperNode = createNativeWaveShaperNode(nativeContext, {
|
|
84
|
+
...SINGLE_CHANNEL_WAVE_SHAPER_OPTIONS,
|
|
85
|
+
curve: leftInputForRightOutputWaveShaperCurve
|
|
86
|
+
});
|
|
87
|
+
const panWaveShaperNode = createNativeWaveShaperNode(nativeContext, { ...SINGLE_CHANNEL_WAVE_SHAPER_OPTIONS, curve: DC_CURVE });
|
|
88
|
+
const rightInputForLeftOutputGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
|
|
89
|
+
const rightInputForLeftOutputWaveShaperNode = createNativeWaveShaperNode(nativeContext, {
|
|
90
|
+
...SINGLE_CHANNEL_WAVE_SHAPER_OPTIONS,
|
|
91
|
+
curve: rightInputForLeftOutputWaveShaperCurve
|
|
92
|
+
});
|
|
93
|
+
const rightInputForRightOutputGainNode = createNativeGainNode(nativeContext, { ...SINGLE_CHANNEL_OPTIONS, gain: 0 });
|
|
94
|
+
const rightInputForRightOutputWaveShaperNode = createNativeWaveShaperNode(nativeContext, {
|
|
95
|
+
...SINGLE_CHANNEL_WAVE_SHAPER_OPTIONS,
|
|
96
|
+
curve: rightInputForRightOutputWaveShaperCurve
|
|
97
|
+
});
|
|
98
|
+
return {
|
|
99
|
+
connectGraph() {
|
|
100
|
+
inputGainNode.connect(channelSplitterNode);
|
|
101
|
+
inputGainNode.connect(panWaveShaperNode.inputs === void 0 ? panWaveShaperNode : panWaveShaperNode.inputs[0]);
|
|
102
|
+
channelSplitterNode.connect(leftInputForLeftOutputGainNode, 0);
|
|
103
|
+
channelSplitterNode.connect(leftInputForRightOutputGainNode, 0);
|
|
104
|
+
channelSplitterNode.connect(rightInputForLeftOutputGainNode, 1);
|
|
105
|
+
channelSplitterNode.connect(rightInputForRightOutputGainNode, 1);
|
|
106
|
+
panWaveShaperNode.connect(panGainNode);
|
|
107
|
+
panGainNode.connect(leftInputForLeftOutputWaveShaperNode.inputs === void 0 ? leftInputForLeftOutputWaveShaperNode : leftInputForLeftOutputWaveShaperNode.inputs[0]);
|
|
108
|
+
panGainNode.connect(leftInputForRightOutputWaveShaperNode.inputs === void 0 ? leftInputForRightOutputWaveShaperNode : leftInputForRightOutputWaveShaperNode.inputs[0]);
|
|
109
|
+
panGainNode.connect(rightInputForLeftOutputWaveShaperNode.inputs === void 0 ? rightInputForLeftOutputWaveShaperNode : rightInputForLeftOutputWaveShaperNode.inputs[0]);
|
|
110
|
+
panGainNode.connect(rightInputForRightOutputWaveShaperNode.inputs === void 0 ? rightInputForRightOutputWaveShaperNode : rightInputForRightOutputWaveShaperNode.inputs[0]);
|
|
111
|
+
leftInputForLeftOutputWaveShaperNode.connect(leftInputForLeftOutputGainNode.gain);
|
|
112
|
+
leftInputForRightOutputWaveShaperNode.connect(leftInputForRightOutputGainNode.gain);
|
|
113
|
+
rightInputForLeftOutputWaveShaperNode.connect(rightInputForLeftOutputGainNode.gain);
|
|
114
|
+
rightInputForRightOutputWaveShaperNode.connect(rightInputForRightOutputGainNode.gain);
|
|
115
|
+
leftInputForLeftOutputGainNode.connect(channelMergerNode, 0, 0);
|
|
116
|
+
rightInputForLeftOutputGainNode.connect(channelMergerNode, 0, 0);
|
|
117
|
+
leftInputForRightOutputGainNode.connect(channelMergerNode, 0, 1);
|
|
118
|
+
rightInputForRightOutputGainNode.connect(channelMergerNode, 0, 1);
|
|
119
|
+
},
|
|
120
|
+
disconnectGraph() {
|
|
121
|
+
inputGainNode.disconnect(channelSplitterNode);
|
|
122
|
+
inputGainNode.disconnect(panWaveShaperNode.inputs === void 0 ? panWaveShaperNode : panWaveShaperNode.inputs[0]);
|
|
123
|
+
channelSplitterNode.disconnect(leftInputForLeftOutputGainNode, 0);
|
|
124
|
+
channelSplitterNode.disconnect(leftInputForRightOutputGainNode, 0);
|
|
125
|
+
channelSplitterNode.disconnect(rightInputForLeftOutputGainNode, 1);
|
|
126
|
+
channelSplitterNode.disconnect(rightInputForRightOutputGainNode, 1);
|
|
127
|
+
panWaveShaperNode.disconnect(panGainNode);
|
|
128
|
+
panGainNode.disconnect(leftInputForLeftOutputWaveShaperNode.inputs === void 0 ? leftInputForLeftOutputWaveShaperNode : leftInputForLeftOutputWaveShaperNode.inputs[0]);
|
|
129
|
+
panGainNode.disconnect(leftInputForRightOutputWaveShaperNode.inputs === void 0 ? leftInputForRightOutputWaveShaperNode : leftInputForRightOutputWaveShaperNode.inputs[0]);
|
|
130
|
+
panGainNode.disconnect(rightInputForLeftOutputWaveShaperNode.inputs === void 0 ? rightInputForLeftOutputWaveShaperNode : rightInputForLeftOutputWaveShaperNode.inputs[0]);
|
|
131
|
+
panGainNode.disconnect(rightInputForRightOutputWaveShaperNode.inputs === void 0 ? rightInputForRightOutputWaveShaperNode : rightInputForRightOutputWaveShaperNode.inputs[0]);
|
|
132
|
+
leftInputForLeftOutputWaveShaperNode.disconnect(leftInputForLeftOutputGainNode.gain);
|
|
133
|
+
leftInputForRightOutputWaveShaperNode.disconnect(leftInputForRightOutputGainNode.gain);
|
|
134
|
+
rightInputForLeftOutputWaveShaperNode.disconnect(rightInputForLeftOutputGainNode.gain);
|
|
135
|
+
rightInputForRightOutputWaveShaperNode.disconnect(rightInputForRightOutputGainNode.gain);
|
|
136
|
+
leftInputForLeftOutputGainNode.disconnect(channelMergerNode, 0, 0);
|
|
137
|
+
rightInputForLeftOutputGainNode.disconnect(channelMergerNode, 0, 0);
|
|
138
|
+
leftInputForRightOutputGainNode.disconnect(channelMergerNode, 0, 1);
|
|
139
|
+
rightInputForRightOutputGainNode.disconnect(channelMergerNode, 0, 1);
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
const buildInternalGraph = (nativeContext, channelCount, inputGainNode, panGainNode, channelMergerNode) => {
|
|
144
|
+
if (channelCount === 1) {
|
|
145
|
+
return buildInternalGraphForMono(nativeContext, inputGainNode, panGainNode, channelMergerNode);
|
|
146
|
+
}
|
|
147
|
+
if (channelCount === 2) {
|
|
148
|
+
return buildInternalGraphForStereo(nativeContext, inputGainNode, panGainNode, channelMergerNode);
|
|
149
|
+
}
|
|
150
|
+
throw createNotSupportedError();
|
|
151
|
+
};
|
|
152
|
+
return (nativeContext, { channelCount, channelCountMode, pan, ...audioNodeOptions }) => {
|
|
153
|
+
if (channelCountMode === "max") {
|
|
154
|
+
throw createNotSupportedError();
|
|
155
|
+
}
|
|
156
|
+
const channelMergerNode = createNativeChannelMergerNode(nativeContext, {
|
|
157
|
+
...audioNodeOptions,
|
|
158
|
+
channelCount: 1,
|
|
159
|
+
channelCountMode,
|
|
160
|
+
numberOfInputs: 2
|
|
161
|
+
});
|
|
162
|
+
const inputGainNode = createNativeGainNode(nativeContext, { ...audioNodeOptions, channelCount, channelCountMode, gain: 1 });
|
|
163
|
+
const panGainNode = createNativeGainNode(nativeContext, {
|
|
164
|
+
channelCount: 1,
|
|
165
|
+
channelCountMode: "explicit",
|
|
166
|
+
channelInterpretation: "discrete",
|
|
167
|
+
gain: pan
|
|
168
|
+
});
|
|
169
|
+
let { connectGraph, disconnectGraph } = buildInternalGraph(nativeContext, channelCount, inputGainNode, panGainNode, channelMergerNode);
|
|
170
|
+
Object.defineProperty(panGainNode.gain, "defaultValue", { get: () => 0 });
|
|
171
|
+
Object.defineProperty(panGainNode.gain, "maxValue", { get: () => 1 });
|
|
172
|
+
Object.defineProperty(panGainNode.gain, "minValue", { get: () => -1 });
|
|
173
|
+
const nativeStereoPannerNodeFakerFactory = {
|
|
174
|
+
get bufferSize() {
|
|
175
|
+
return void 0;
|
|
176
|
+
},
|
|
177
|
+
get channelCount() {
|
|
178
|
+
return inputGainNode.channelCount;
|
|
179
|
+
},
|
|
180
|
+
set channelCount(value) {
|
|
181
|
+
if (inputGainNode.channelCount !== value) {
|
|
182
|
+
if (isConnected) {
|
|
183
|
+
disconnectGraph();
|
|
184
|
+
}
|
|
185
|
+
({ connectGraph, disconnectGraph } = buildInternalGraph(nativeContext, value, inputGainNode, panGainNode, channelMergerNode));
|
|
186
|
+
if (isConnected) {
|
|
187
|
+
connectGraph();
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
inputGainNode.channelCount = value;
|
|
191
|
+
},
|
|
192
|
+
get channelCountMode() {
|
|
193
|
+
return inputGainNode.channelCountMode;
|
|
194
|
+
},
|
|
195
|
+
set channelCountMode(value) {
|
|
196
|
+
if (value === "clamped-max" || value === "max") {
|
|
197
|
+
throw createNotSupportedError();
|
|
198
|
+
}
|
|
199
|
+
inputGainNode.channelCountMode = value;
|
|
200
|
+
},
|
|
201
|
+
get channelInterpretation() {
|
|
202
|
+
return inputGainNode.channelInterpretation;
|
|
203
|
+
},
|
|
204
|
+
set channelInterpretation(value) {
|
|
205
|
+
inputGainNode.channelInterpretation = value;
|
|
206
|
+
},
|
|
207
|
+
get context() {
|
|
208
|
+
return inputGainNode.context;
|
|
209
|
+
},
|
|
210
|
+
get inputs() {
|
|
211
|
+
return [inputGainNode];
|
|
212
|
+
},
|
|
213
|
+
get numberOfInputs() {
|
|
214
|
+
return inputGainNode.numberOfInputs;
|
|
215
|
+
},
|
|
216
|
+
get numberOfOutputs() {
|
|
217
|
+
return inputGainNode.numberOfOutputs;
|
|
218
|
+
},
|
|
219
|
+
get pan() {
|
|
220
|
+
return panGainNode.gain;
|
|
221
|
+
},
|
|
222
|
+
addEventListener(...args) {
|
|
223
|
+
return inputGainNode.addEventListener(args[0], args[1], args[2]);
|
|
224
|
+
},
|
|
225
|
+
dispatchEvent(...args) {
|
|
226
|
+
return inputGainNode.dispatchEvent(args[0]);
|
|
227
|
+
},
|
|
228
|
+
removeEventListener(...args) {
|
|
229
|
+
return inputGainNode.removeEventListener(args[0], args[1], args[2]);
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
let isConnected = false;
|
|
233
|
+
const whenConnected = () => {
|
|
234
|
+
connectGraph();
|
|
235
|
+
isConnected = true;
|
|
236
|
+
};
|
|
237
|
+
const whenDisconnected = () => {
|
|
238
|
+
disconnectGraph();
|
|
239
|
+
isConnected = false;
|
|
240
|
+
};
|
|
241
|
+
return monitorConnections(interceptConnections.interceptConnections(nativeStereoPannerNodeFakerFactory, channelMergerNode), whenConnected, whenDisconnected);
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
exports.createNativeStereoPannerNodeFakerFactory = createNativeStereoPannerNodeFakerFactory;
|