react-audio-wavekit 0.1.7 → 0.2.0
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 +14 -4
- package/dist/_virtual/_commonjsHelpers.cjs +6 -0
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/browser.cjs +7 -0
- package/dist/_virtual/browser.js +7 -0
- package/dist/index.d.ts +14 -6
- package/dist/node_modules/@eshaz/web-worker/cjs/browser.cjs +11 -0
- package/dist/node_modules/@eshaz/web-worker/cjs/browser.js +11 -0
- package/dist/node_modules/@wasm-audio-decoders/common/src/WASMAudioDecoderCommon.cjs +168 -0
- package/dist/node_modules/@wasm-audio-decoders/common/src/WASMAudioDecoderCommon.js +168 -0
- package/dist/node_modules/@wasm-audio-decoders/common/src/WASMAudioDecoderWorker.cjs +90 -0
- package/dist/node_modules/@wasm-audio-decoders/common/src/WASMAudioDecoderWorker.js +90 -0
- package/dist/node_modules/@wasm-audio-decoders/common/src/utilities.cjs +6 -0
- package/dist/node_modules/@wasm-audio-decoders/common/src/utilities.js +6 -0
- package/dist/node_modules/mpg123-decoder/index.cjs +9 -0
- package/dist/node_modules/mpg123-decoder/index.js +9 -0
- package/dist/node_modules/mpg123-decoder/src/EmscriptenWasm.cjs +0 -0
- package/dist/node_modules/mpg123-decoder/src/EmscriptenWasm.js +0 -0
- package/dist/node_modules/mpg123-decoder/src/MPEGDecoder.cjs +147 -0
- package/dist/node_modules/mpg123-decoder/src/MPEGDecoder.js +147 -0
- package/dist/node_modules/mpg123-decoder/src/MPEGDecoderWebWorker.cjs +20 -0
- package/dist/node_modules/mpg123-decoder/src/MPEGDecoderWebWorker.js +20 -0
- package/dist/node_modules/simple-yenc/dist/esm.cjs +41 -0
- package/dist/node_modules/simple-yenc/dist/esm.js +41 -0
- package/dist/recorder/live-streaming/recorder/recorder-compound.cjs +1 -1
- package/dist/recorder/live-streaming/recorder/recorder-compound.js +1 -1
- package/dist/waveform/index.cjs +28 -11
- package/dist/waveform/index.js +28 -11
- package/dist/waveform/util-audio-decoder.cjs +36 -15
- package/dist/waveform/util-audio-decoder.js +36 -15
- package/dist/waveform/waveform-renderer.cjs +61 -14
- package/dist/waveform/waveform-renderer.js +61 -14
- package/package.json +3 -3
- package/dist/node_modules/automation-events/build/es2019/classes/automation-event-list.cjs +0 -137
- package/dist/node_modules/automation-events/build/es2019/classes/automation-event-list.js +0 -137
- package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-and-hold-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-and-hold-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-scheduled-values-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-scheduled-values-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-exponential-ramp-to-value-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-exponential-ramp-to-value-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-extended-exponential-ramp-to-value-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-extended-exponential-ramp-to-value-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-extended-linear-ramp-to-value-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-extended-linear-ramp-to-value-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-linear-ramp-to-value-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-linear-ramp-to-value-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-target-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-target-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-curve-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-curve-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/get-end-time-and-value-of-previous-automation-event.cjs +0 -16
- package/dist/node_modules/automation-events/build/es2019/functions/get-end-time-and-value-of-previous-automation-event.js +0 -16
- package/dist/node_modules/automation-events/build/es2019/functions/get-event-time.cjs +0 -16
- package/dist/node_modules/automation-events/build/es2019/functions/get-event-time.js +0 -16
- package/dist/node_modules/automation-events/build/es2019/functions/get-exponential-ramp-value-at-time.cjs +0 -12
- package/dist/node_modules/automation-events/build/es2019/functions/get-exponential-ramp-value-at-time.js +0 -12
- package/dist/node_modules/automation-events/build/es2019/functions/get-linear-ramp-value-at-time.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/get-linear-ramp-value-at-time.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/get-target-value-at-time.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/get-target-value-at-time.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/get-value-curve-value-at-time.cjs +0 -8
- package/dist/node_modules/automation-events/build/es2019/functions/get-value-curve-value-at-time.js +0 -8
- package/dist/node_modules/automation-events/build/es2019/functions/get-value-of-automation-event-at-index-at-time.cjs +0 -11
- package/dist/node_modules/automation-events/build/es2019/functions/get-value-of-automation-event-at-index-at-time.js +0 -11
- package/dist/node_modules/automation-events/build/es2019/functions/interpolate-value.cjs +0 -11
- package/dist/node_modules/automation-events/build/es2019/functions/interpolate-value.js +0 -11
- package/dist/node_modules/automation-events/build/es2019/guards/any-ramp-to-value-automation-event.cjs +0 -8
- package/dist/node_modules/automation-events/build/es2019/guards/any-ramp-to-value-automation-event.js +0 -8
- package/dist/node_modules/automation-events/build/es2019/guards/cancel-and-hold-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/cancel-and-hold-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/cancel-scheduled-values-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/cancel-scheduled-values-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/exponential-ramp-to-value-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/exponential-ramp-to-value-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/linear-ramp-to-value-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/linear-ramp-to-value-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/set-target-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/set-target-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/set-value-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/set-value-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/set-value-curve-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/set-value-curve-automation-event.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/constants.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/constants.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/abort-error.cjs +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/abort-error.js +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-active-input-connection-to-audio-node.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-active-input-connection-to-audio-node.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-node-connections.cjs +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-node-connections.js +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-param-connections.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-param-connections.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-worklet-module.cjs +0 -115
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-worklet-module.js +0 -115
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-connection-to-audio-node.cjs +0 -60
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-connection-to-audio-node.js +0 -60
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-passive-input-connection-to-audio-node.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-passive-input-connection-to-audio-node.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-silent-connection.cjs +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-silent-connection.js +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-constructor.cjs +0 -73
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-constructor.js +0 -73
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-renderer-factory.cjs +0 -37
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-renderer-factory.js +0 -37
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-constructor.cjs +0 -37
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-constructor.js +0 -37
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-constructor.cjs +0 -103
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-constructor.js +0 -103
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-renderer-factory.cjs +0 -58
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-renderer-factory.js +0 -58
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-constructor.cjs +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-constructor.js +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-renderer-factory.cjs +0 -21
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-renderer-factory.js +0 -21
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-listener-factory.cjs +0 -220
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-listener-factory.js +0 -220
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-node-constructor.cjs +0 -274
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-node-constructor.js +0 -274
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-factory.cjs +0 -152
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-factory.js +0 -152
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-renderer.cjs +0 -29
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-renderer.js +0 -29
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/base-audio-context-constructor.cjs +0 -83
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/base-audio-context-constructor.js +0 -83
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-constructor.cjs +0 -63
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-constructor.js +0 -63
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-renderer-factory.cjs +0 -49
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-renderer-factory.js +0 -49
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/cache-test-result.cjs +0 -31
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/cache-test-result.js +0 -31
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-constructor.cjs +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-constructor.js +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-renderer-factory.cjs +0 -34
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-renderer-factory.js +0 -34
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-constructor.cjs +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-constructor.js +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-renderer-factory.cjs +0 -34
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-renderer-factory.js +0 -34
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/connect-audio-param.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/connect-audio-param.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/connected-native-audio-buffer-source-node-factory.cjs +0 -26
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/connected-native-audio-buffer-source-node-factory.js +0 -26
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-constructor.cjs +0 -63
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-constructor.js +0 -63
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-renderer-factory.cjs +0 -53
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-renderer-factory.js +0 -53
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convert-number-to-unsigned-long.cjs +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convert-number-to-unsigned-long.js +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-constructor.cjs +0 -51
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-constructor.js +0 -51
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-renderer-factory.cjs +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-renderer-factory.js +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/create-native-offline-audio-context.cjs +0 -18
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/create-native-offline-audio-context.js +0 -18
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/data-clone-error.cjs +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/data-clone-error.js +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/decode-audio-data.cjs +0 -59
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/decode-audio-data.js +0 -59
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/decrement-cycle-counter.cjs +0 -32
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/decrement-cycle-counter.js +0 -32
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-constructor.cjs +0 -27
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-constructor.js +0 -27
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-renderer-factory.cjs +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-renderer-factory.js +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delete-active-input-connection-to-audio-node.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delete-active-input-connection-to-audio-node.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/detect-cycles.cjs +0 -21
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/detect-cycles.js +0 -21
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-constructor.cjs +0 -80
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-constructor.js +0 -80
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-renderer-factory.cjs +0 -51
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-renderer-factory.js +0 -51
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/encoding-error.cjs +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/encoding-error.js +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/evaluate-source.cjs +0 -45
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/evaluate-source.js +0 -45
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/event-target-constructor.cjs +0 -30
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/event-target-constructor.js +0 -30
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/expose-current-frame-and-current-time.cjs +0 -29
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/expose-current-frame-and-current-time.js +0 -29
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/fetch-source.cjs +0 -15
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/fetch-source.js +0 -15
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-constructor.cjs +0 -26
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-constructor.js +0 -26
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-renderer-factory.cjs +0 -39
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-renderer-factory.js +0 -39
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-renderer.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-renderer.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-tail-time.cjs +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-tail-time.js +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-param-renderer.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-param-renderer.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-native-context.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-native-context.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-or-create-backup-offline-audio-context.cjs +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-or-create-backup-offline-audio-context.js +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-unrendered-audio-worklet-nodes.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-unrendered-audio-worklet-nodes.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-constructor.cjs +0 -27
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-constructor.js +0 -27
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-renderer-factory.cjs +0 -93
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-renderer-factory.js +0 -93
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/increment-cycle-counter-factory.cjs +0 -29
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/increment-cycle-counter-factory.js +0 -29
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/index-size-error.cjs +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/index-size-error.js +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-access-error.cjs +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-access-error.js +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-state-error.cjs +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-state-error.js +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-context.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-context.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-node.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-node.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-param.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-param.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-context.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-context.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-offline-audio-context.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-offline-audio-context.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-secure-context.cjs +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-secure-context.js +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/minimal-base-audio-context-constructor.cjs +0 -43
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/minimal-base-audio-context-constructor.js +0 -43
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/monitor-connections.cjs +0 -59
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/monitor-connections.js +0 -59
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-analyser-node-factory.cjs +0 -24
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-analyser-node-factory.js +0 -24
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-constructor.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-constructor.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-source-node-factory.cjs +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-source-node-factory.js +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-context-constructor.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-context-constructor.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-destination-node.cjs +0 -51
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-destination-node.js +0 -51
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-worklet-node-constructor.cjs +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-worklet-node-constructor.js +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-biquad-filter-node.cjs +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-biquad-filter-node.js +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-merger-node-factory.cjs +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-merger-node-factory.js +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-splitter-node.cjs +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-splitter-node.js +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-factory.cjs +0 -25
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-factory.js +0 -25
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-faker-factory.cjs +0 -88
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-faker-factory.js +0 -88
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-convolver-node-factory.cjs +0 -34
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-convolver-node-factory.js +0 -34
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-delay-node.cjs +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-delay-node.js +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-dynamics-compressor-node-factory.cjs +0 -23
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-dynamics-compressor-node-factory.js +0 -23
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-gain-node.cjs +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-gain-node.js +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-factory.cjs +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-factory.js +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-faker-factory.cjs +0 -139
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-faker-factory.js +0 -139
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-offline-audio-context-constructor.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-offline-audio-context-constructor.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-oscillator-node-factory.cjs +0 -32
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-oscillator-node-factory.js +0 -32
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-factory.cjs +0 -30
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-factory.js +0 -30
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-faker-factory.cjs +0 -277
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-faker-factory.js +0 -277
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-periodic-wave-factory.cjs +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-periodic-wave-factory.js +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-script-processor-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-script-processor-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-factory.cjs +0 -28
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-factory.js +0 -28
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-faker-factory.cjs +0 -244
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-faker-factory.js +0 -244
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-factory.cjs +0 -48
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-factory.js +0 -48
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-faker-factory.cjs +0 -153
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-faker-factory.js +0 -153
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/not-supported-error.cjs +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/not-supported-error.js +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/offline-audio-context-constructor.cjs +0 -71
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/offline-audio-context-constructor.js +0 -71
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-constructor.cjs +0 -90
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-constructor.js +0 -90
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-renderer-factory.cjs +0 -62
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-renderer-factory.js +0 -62
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-constructor.cjs +0 -109
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-constructor.js +0 -109
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-renderer-factory.cjs +0 -166
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-renderer-factory.js +0 -166
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/periodic-wave-constructor.cjs +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/periodic-wave-constructor.js +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-automation.cjs +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-automation.js +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-node.cjs +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-node.js +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-param.cjs +0 -15
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-param.js +0 -15
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-native-offline-audio-context.cjs +0 -36
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-native-offline-audio-context.js +0 -36
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/set-audio-node-tail-time.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/set-audio-node-tail-time.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/start-rendering.cjs +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/start-rendering.js +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-constructor.cjs +0 -29
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-constructor.js +0 -29
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-renderer-factory.cjs +0 -44
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-renderer-factory.js +0 -44
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-buffer-constructor-support.cjs +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-buffer-constructor-support.js +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-worklet-processor-post-message-support.cjs +0 -35
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-worklet-processor-post-message-support.js +0 -35
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-offline-audio-context-current-time-support.cjs +0 -24
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-offline-audio-context-current-time-support.js +0 -24
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-constructor.cjs +0 -49
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-constructor.js +0 -49
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-renderer-factory.cjs +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-renderer-factory.js +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/window.cjs +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/window.js +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods-out-of-bounds.cjs +0 -25
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods-out-of-bounds.js +0 -25
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods.cjs +0 -33
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods.js +0 -33
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-source-node-stop-method-nullified-buffer.cjs +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-source-node-stop-method-nullified-buffer.js +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-channel-merger-node.cjs +0 -30
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-channel-merger-node.js +0 -30
- package/dist/node_modules/standardized-audio-context/build/es2019/globals.cjs +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/globals.js +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-buffer-source-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-buffer-source-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node-output-connection.cjs +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node-output-connection.js +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-worklet-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-worklet-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/biquad-filter-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/biquad-filter-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/constant-source-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/constant-source-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/delay-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/delay-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/gain-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/gain-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node-faker.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node-faker.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/oscillator-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/oscillator-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/stereo-panner-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/stereo-panner-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-active-input-connection-to-audio-param.cjs +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-active-input-connection-to-audio-param.js +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-passive-input-connection-to-audio-param.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-passive-input-connection-to-audio-param.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-audio-param-value.cjs +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-audio-param-value.js +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-option.cjs +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-option.js +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-options.cjs +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-options.js +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/compute-buffer-size.cjs +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/compute-buffer-size.js +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/connect-native-audio-node-to-native-audio-node.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/connect-native-audio-node-to-native-audio-node.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-active-audio-node-input-connections.cjs +0 -35
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-active-audio-node-input-connections.js +0 -35
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-audio-graph.cjs +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-audio-graph.js +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection-to-audio-param.cjs +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection-to-audio-param.js +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-event-listeners-of-audio-node.cjs +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-event-listeners-of-audio-node.js +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-node.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-node.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-param.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-param.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/detach-array-buffer.cjs +0 -21
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/detach-array-buffer.js +0 -21
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/disconnect-native-audio-node-from-native-audio-node.cjs +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/disconnect-native-audio-node-from-native-audio-node.js +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/filter-buffer.cjs +0 -26
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/filter-buffer.js +0 -26
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-node-connections.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-node-connections.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-param-connections.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-param-connections.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-event-listeners-of-audio-node.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-event-listeners-of-audio-node.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-first-sample.cjs +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-first-sample.js +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-node.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-node.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-param.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-param.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-value-for-key.cjs +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-value-for-key.js +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/insert-element-in-set.cjs +0 -15
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/insert-element-in-set.js +0 -15
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/intercept-connections.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/intercept-connections.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-active-audio-node.cjs +0 -5
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-active-audio-node.js +0 -5
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-constructible.cjs +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-constructible.js +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-dc-curve.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-dc-curve.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-owned-by-context.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-owned-by-context.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-part-of-a-cycle.cjs +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-part-of-a-cycle.js +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-passive-audio-node.cjs +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-passive-audio-node.js +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/overwrite-accessors.cjs +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/overwrite-accessors.js +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/pick-element-from-set.cjs +0 -15
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/pick-element-from-set.js +0 -15
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-channel-splitter-options.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-channel-splitter-options.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-periodic-wave-options.cjs +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-periodic-wave-options.js +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-active.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-active.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive-when-necessary.cjs +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive-when-necessary.js +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-value-at-time-until-possible.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-value-at-time-until-possible.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/split-import-statements.cjs +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/split-import-statements.js +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-analyser-node-get-float-time-domain-data-method-support.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-analyser-node-get-float-time-domain-data-method-support.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-copy-channel-methods-out-of-bounds-support.cjs +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-copy-channel-methods-out-of-bounds-support.js +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-consecutive-calls-support.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-consecutive-calls-support.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-offset-clamping-support.cjs +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-offset-clamping-support.js +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-stop-method-nullified-buffer-support.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-stop-method-nullified-buffer-support.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-node-disconnect-method-support.cjs +0 -36
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-node-disconnect-method-support.js +0 -36
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-start-method-negative-parameters-support.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-start-method-negative-parameters-support.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-consecutive-calls-support.cjs +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-consecutive-calls-support.js +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-negative-parameters-support.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-negative-parameters-support.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-promise-support.cjs +0 -18
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-promise-support.js +0 -18
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/visit-each-audio-node-once.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/visit-each-audio-node-once.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-analyser-node-get-float-time-domain-data-method.cjs +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-analyser-node-get-float-time-domain-data-method.js +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-get-channel-data-method.cjs +0 -18
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-get-channel-data-method.js +0 -18
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-consecutive-calls.cjs +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-consecutive-calls.js +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-offset-clamping.cjs +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-offset-clamping.js +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-node-disconnect-method.cjs +0 -61
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-node-disconnect-method.js +0 -61
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-start-method-negative-parameters.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-start-method-negative-parameters.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-consecutive-calls.cjs +0 -31
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-consecutive-calls.js +0 -31
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-negative-parameters.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-negative-parameters.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-channel-splitter-node.cjs +0 -31
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-channel-splitter-node.js +0 -31
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-event-listener.cjs +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-event-listener.js +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-iir-filter-node-get-frequency-response-method.cjs +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-iir-filter-node-get-frequency-response-method.js +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/module.cjs +0 -298
- package/dist/node_modules/standardized-audio-context/build/es2019/module.js +0 -298
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const createAudioDestinationNodeRenderer = (renderInputsOfAudioNode) => {
|
|
2
|
-
const renderedNativeAudioDestinationNodes = /* @__PURE__ */ new WeakMap();
|
|
3
|
-
const createAudioDestinationNode = async (proxy, nativeOfflineAudioContext) => {
|
|
4
|
-
const nativeAudioDestinationNode = nativeOfflineAudioContext.destination;
|
|
5
|
-
renderedNativeAudioDestinationNodes.set(nativeOfflineAudioContext, nativeAudioDestinationNode);
|
|
6
|
-
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeAudioDestinationNode);
|
|
7
|
-
return nativeAudioDestinationNode;
|
|
8
|
-
};
|
|
9
|
-
return {
|
|
10
|
-
render(proxy, nativeOfflineAudioContext) {
|
|
11
|
-
const renderedNativeAudioDestinationNode = renderedNativeAudioDestinationNodes.get(nativeOfflineAudioContext);
|
|
12
|
-
if (renderedNativeAudioDestinationNode !== void 0) {
|
|
13
|
-
return Promise.resolve(renderedNativeAudioDestinationNode);
|
|
14
|
-
}
|
|
15
|
-
return createAudioDestinationNode(proxy, nativeOfflineAudioContext);
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export {
|
|
20
|
-
createAudioDestinationNodeRenderer
|
|
21
|
-
};
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const constants = require("../constants.cjs");
|
|
4
|
-
const createAudioListenerFactory = (createAudioParam, createNativeChannelMergerNode, createNativeConstantSourceNode, createNativeScriptProcessorNode, createNotSupportedError, getFirstSample, isNativeOfflineAudioContext, overwriteAccessors) => {
|
|
5
|
-
return (context, nativeContext) => {
|
|
6
|
-
const nativeListener = nativeContext.listener;
|
|
7
|
-
const createFakeAudioParams = () => {
|
|
8
|
-
const buffer = new Float32Array(1);
|
|
9
|
-
const channelMergerNode = createNativeChannelMergerNode(nativeContext, {
|
|
10
|
-
channelCount: 1,
|
|
11
|
-
channelCountMode: "explicit",
|
|
12
|
-
channelInterpretation: "speakers",
|
|
13
|
-
numberOfInputs: 9
|
|
14
|
-
});
|
|
15
|
-
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
16
|
-
let isScriptProcessorNodeCreated = false;
|
|
17
|
-
let lastOrientation = [0, 0, -1, 0, 1, 0];
|
|
18
|
-
let lastPosition = [0, 0, 0];
|
|
19
|
-
const createScriptProcessorNode = () => {
|
|
20
|
-
if (isScriptProcessorNodeCreated) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
isScriptProcessorNodeCreated = true;
|
|
24
|
-
const scriptProcessorNode = createNativeScriptProcessorNode(nativeContext, 256, 9, 0);
|
|
25
|
-
scriptProcessorNode.onaudioprocess = ({ inputBuffer }) => {
|
|
26
|
-
const orientation = [
|
|
27
|
-
getFirstSample(inputBuffer, buffer, 0),
|
|
28
|
-
getFirstSample(inputBuffer, buffer, 1),
|
|
29
|
-
getFirstSample(inputBuffer, buffer, 2),
|
|
30
|
-
getFirstSample(inputBuffer, buffer, 3),
|
|
31
|
-
getFirstSample(inputBuffer, buffer, 4),
|
|
32
|
-
getFirstSample(inputBuffer, buffer, 5)
|
|
33
|
-
];
|
|
34
|
-
if (orientation.some((value, index) => value !== lastOrientation[index])) {
|
|
35
|
-
nativeListener.setOrientation(...orientation);
|
|
36
|
-
lastOrientation = orientation;
|
|
37
|
-
}
|
|
38
|
-
const positon = [
|
|
39
|
-
getFirstSample(inputBuffer, buffer, 6),
|
|
40
|
-
getFirstSample(inputBuffer, buffer, 7),
|
|
41
|
-
getFirstSample(inputBuffer, buffer, 8)
|
|
42
|
-
];
|
|
43
|
-
if (positon.some((value, index) => value !== lastPosition[index])) {
|
|
44
|
-
nativeListener.setPosition(...positon);
|
|
45
|
-
lastPosition = positon;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
channelMergerNode.connect(scriptProcessorNode);
|
|
49
|
-
};
|
|
50
|
-
const createSetOrientation = (index) => (value) => {
|
|
51
|
-
if (value !== lastOrientation[index]) {
|
|
52
|
-
lastOrientation[index] = value;
|
|
53
|
-
nativeListener.setOrientation(...lastOrientation);
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
const createSetPosition = (index) => (value) => {
|
|
57
|
-
if (value !== lastPosition[index]) {
|
|
58
|
-
lastPosition[index] = value;
|
|
59
|
-
nativeListener.setPosition(...lastPosition);
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
const createFakeAudioParam = (input, initialValue, setValue) => {
|
|
63
|
-
const constantSourceNode = createNativeConstantSourceNode(nativeContext, {
|
|
64
|
-
channelCount: 1,
|
|
65
|
-
channelCountMode: "explicit",
|
|
66
|
-
channelInterpretation: "discrete",
|
|
67
|
-
offset: initialValue
|
|
68
|
-
});
|
|
69
|
-
constantSourceNode.connect(channelMergerNode, 0, input);
|
|
70
|
-
constantSourceNode.start();
|
|
71
|
-
Object.defineProperty(constantSourceNode.offset, "defaultValue", {
|
|
72
|
-
get() {
|
|
73
|
-
return initialValue;
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
const audioParam = createAudioParam({ context }, isOffline, constantSourceNode.offset, constants.MOST_POSITIVE_SINGLE_FLOAT, constants.MOST_NEGATIVE_SINGLE_FLOAT);
|
|
77
|
-
overwriteAccessors(audioParam, "value", (get) => () => get.call(audioParam), (set) => (value) => {
|
|
78
|
-
try {
|
|
79
|
-
set.call(audioParam, value);
|
|
80
|
-
} catch (err) {
|
|
81
|
-
if (err.code !== 9) {
|
|
82
|
-
throw err;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
createScriptProcessorNode();
|
|
86
|
-
if (isOffline) {
|
|
87
|
-
setValue(value);
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
audioParam.cancelAndHoldAtTime = ((cancelAndHoldAtTime) => {
|
|
91
|
-
if (isOffline) {
|
|
92
|
-
return () => {
|
|
93
|
-
throw createNotSupportedError();
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
return (...args) => {
|
|
97
|
-
const value = cancelAndHoldAtTime.apply(audioParam, args);
|
|
98
|
-
createScriptProcessorNode();
|
|
99
|
-
return value;
|
|
100
|
-
};
|
|
101
|
-
})(audioParam.cancelAndHoldAtTime);
|
|
102
|
-
audioParam.cancelScheduledValues = ((cancelScheduledValues) => {
|
|
103
|
-
if (isOffline) {
|
|
104
|
-
return () => {
|
|
105
|
-
throw createNotSupportedError();
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
return (...args) => {
|
|
109
|
-
const value = cancelScheduledValues.apply(audioParam, args);
|
|
110
|
-
createScriptProcessorNode();
|
|
111
|
-
return value;
|
|
112
|
-
};
|
|
113
|
-
})(audioParam.cancelScheduledValues);
|
|
114
|
-
audioParam.exponentialRampToValueAtTime = ((exponentialRampToValueAtTime) => {
|
|
115
|
-
if (isOffline) {
|
|
116
|
-
return () => {
|
|
117
|
-
throw createNotSupportedError();
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
return (...args) => {
|
|
121
|
-
const value = exponentialRampToValueAtTime.apply(audioParam, args);
|
|
122
|
-
createScriptProcessorNode();
|
|
123
|
-
return value;
|
|
124
|
-
};
|
|
125
|
-
})(audioParam.exponentialRampToValueAtTime);
|
|
126
|
-
audioParam.linearRampToValueAtTime = ((linearRampToValueAtTime) => {
|
|
127
|
-
if (isOffline) {
|
|
128
|
-
return () => {
|
|
129
|
-
throw createNotSupportedError();
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
return (...args) => {
|
|
133
|
-
const value = linearRampToValueAtTime.apply(audioParam, args);
|
|
134
|
-
createScriptProcessorNode();
|
|
135
|
-
return value;
|
|
136
|
-
};
|
|
137
|
-
})(audioParam.linearRampToValueAtTime);
|
|
138
|
-
audioParam.setTargetAtTime = ((setTargetAtTime) => {
|
|
139
|
-
if (isOffline) {
|
|
140
|
-
return () => {
|
|
141
|
-
throw createNotSupportedError();
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
return (...args) => {
|
|
145
|
-
const value = setTargetAtTime.apply(audioParam, args);
|
|
146
|
-
createScriptProcessorNode();
|
|
147
|
-
return value;
|
|
148
|
-
};
|
|
149
|
-
})(audioParam.setTargetAtTime);
|
|
150
|
-
audioParam.setValueAtTime = ((setValueAtTime) => {
|
|
151
|
-
if (isOffline) {
|
|
152
|
-
return () => {
|
|
153
|
-
throw createNotSupportedError();
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
return (...args) => {
|
|
157
|
-
const value = setValueAtTime.apply(audioParam, args);
|
|
158
|
-
createScriptProcessorNode();
|
|
159
|
-
return value;
|
|
160
|
-
};
|
|
161
|
-
})(audioParam.setValueAtTime);
|
|
162
|
-
audioParam.setValueCurveAtTime = ((setValueCurveAtTime) => {
|
|
163
|
-
if (isOffline) {
|
|
164
|
-
return () => {
|
|
165
|
-
throw createNotSupportedError();
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
return (...args) => {
|
|
169
|
-
const value = setValueCurveAtTime.apply(audioParam, args);
|
|
170
|
-
createScriptProcessorNode();
|
|
171
|
-
return value;
|
|
172
|
-
};
|
|
173
|
-
})(audioParam.setValueCurveAtTime);
|
|
174
|
-
return audioParam;
|
|
175
|
-
};
|
|
176
|
-
return {
|
|
177
|
-
forwardX: createFakeAudioParam(0, 0, createSetOrientation(0)),
|
|
178
|
-
forwardY: createFakeAudioParam(1, 0, createSetOrientation(1)),
|
|
179
|
-
forwardZ: createFakeAudioParam(2, -1, createSetOrientation(2)),
|
|
180
|
-
positionX: createFakeAudioParam(6, 0, createSetPosition(0)),
|
|
181
|
-
positionY: createFakeAudioParam(7, 0, createSetPosition(1)),
|
|
182
|
-
positionZ: createFakeAudioParam(8, 0, createSetPosition(2)),
|
|
183
|
-
upX: createFakeAudioParam(3, 0, createSetOrientation(3)),
|
|
184
|
-
upY: createFakeAudioParam(4, 1, createSetOrientation(4)),
|
|
185
|
-
upZ: createFakeAudioParam(5, 0, createSetOrientation(5))
|
|
186
|
-
};
|
|
187
|
-
};
|
|
188
|
-
const { forwardX, forwardY, forwardZ, positionX, positionY, positionZ, upX, upY, upZ } = nativeListener.forwardX === void 0 ? createFakeAudioParams() : nativeListener;
|
|
189
|
-
return {
|
|
190
|
-
get forwardX() {
|
|
191
|
-
return forwardX;
|
|
192
|
-
},
|
|
193
|
-
get forwardY() {
|
|
194
|
-
return forwardY;
|
|
195
|
-
},
|
|
196
|
-
get forwardZ() {
|
|
197
|
-
return forwardZ;
|
|
198
|
-
},
|
|
199
|
-
get positionX() {
|
|
200
|
-
return positionX;
|
|
201
|
-
},
|
|
202
|
-
get positionY() {
|
|
203
|
-
return positionY;
|
|
204
|
-
},
|
|
205
|
-
get positionZ() {
|
|
206
|
-
return positionZ;
|
|
207
|
-
},
|
|
208
|
-
get upX() {
|
|
209
|
-
return upX;
|
|
210
|
-
},
|
|
211
|
-
get upY() {
|
|
212
|
-
return upY;
|
|
213
|
-
},
|
|
214
|
-
get upZ() {
|
|
215
|
-
return upZ;
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
};
|
|
220
|
-
exports.createAudioListenerFactory = createAudioListenerFactory;
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import { MOST_POSITIVE_SINGLE_FLOAT, MOST_NEGATIVE_SINGLE_FLOAT } from "../constants.js";
|
|
2
|
-
const createAudioListenerFactory = (createAudioParam, createNativeChannelMergerNode, createNativeConstantSourceNode, createNativeScriptProcessorNode, createNotSupportedError, getFirstSample, isNativeOfflineAudioContext, overwriteAccessors) => {
|
|
3
|
-
return (context, nativeContext) => {
|
|
4
|
-
const nativeListener = nativeContext.listener;
|
|
5
|
-
const createFakeAudioParams = () => {
|
|
6
|
-
const buffer = new Float32Array(1);
|
|
7
|
-
const channelMergerNode = createNativeChannelMergerNode(nativeContext, {
|
|
8
|
-
channelCount: 1,
|
|
9
|
-
channelCountMode: "explicit",
|
|
10
|
-
channelInterpretation: "speakers",
|
|
11
|
-
numberOfInputs: 9
|
|
12
|
-
});
|
|
13
|
-
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
14
|
-
let isScriptProcessorNodeCreated = false;
|
|
15
|
-
let lastOrientation = [0, 0, -1, 0, 1, 0];
|
|
16
|
-
let lastPosition = [0, 0, 0];
|
|
17
|
-
const createScriptProcessorNode = () => {
|
|
18
|
-
if (isScriptProcessorNodeCreated) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
isScriptProcessorNodeCreated = true;
|
|
22
|
-
const scriptProcessorNode = createNativeScriptProcessorNode(nativeContext, 256, 9, 0);
|
|
23
|
-
scriptProcessorNode.onaudioprocess = ({ inputBuffer }) => {
|
|
24
|
-
const orientation = [
|
|
25
|
-
getFirstSample(inputBuffer, buffer, 0),
|
|
26
|
-
getFirstSample(inputBuffer, buffer, 1),
|
|
27
|
-
getFirstSample(inputBuffer, buffer, 2),
|
|
28
|
-
getFirstSample(inputBuffer, buffer, 3),
|
|
29
|
-
getFirstSample(inputBuffer, buffer, 4),
|
|
30
|
-
getFirstSample(inputBuffer, buffer, 5)
|
|
31
|
-
];
|
|
32
|
-
if (orientation.some((value, index) => value !== lastOrientation[index])) {
|
|
33
|
-
nativeListener.setOrientation(...orientation);
|
|
34
|
-
lastOrientation = orientation;
|
|
35
|
-
}
|
|
36
|
-
const positon = [
|
|
37
|
-
getFirstSample(inputBuffer, buffer, 6),
|
|
38
|
-
getFirstSample(inputBuffer, buffer, 7),
|
|
39
|
-
getFirstSample(inputBuffer, buffer, 8)
|
|
40
|
-
];
|
|
41
|
-
if (positon.some((value, index) => value !== lastPosition[index])) {
|
|
42
|
-
nativeListener.setPosition(...positon);
|
|
43
|
-
lastPosition = positon;
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
channelMergerNode.connect(scriptProcessorNode);
|
|
47
|
-
};
|
|
48
|
-
const createSetOrientation = (index) => (value) => {
|
|
49
|
-
if (value !== lastOrientation[index]) {
|
|
50
|
-
lastOrientation[index] = value;
|
|
51
|
-
nativeListener.setOrientation(...lastOrientation);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
const createSetPosition = (index) => (value) => {
|
|
55
|
-
if (value !== lastPosition[index]) {
|
|
56
|
-
lastPosition[index] = value;
|
|
57
|
-
nativeListener.setPosition(...lastPosition);
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
const createFakeAudioParam = (input, initialValue, setValue) => {
|
|
61
|
-
const constantSourceNode = createNativeConstantSourceNode(nativeContext, {
|
|
62
|
-
channelCount: 1,
|
|
63
|
-
channelCountMode: "explicit",
|
|
64
|
-
channelInterpretation: "discrete",
|
|
65
|
-
offset: initialValue
|
|
66
|
-
});
|
|
67
|
-
constantSourceNode.connect(channelMergerNode, 0, input);
|
|
68
|
-
constantSourceNode.start();
|
|
69
|
-
Object.defineProperty(constantSourceNode.offset, "defaultValue", {
|
|
70
|
-
get() {
|
|
71
|
-
return initialValue;
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
const audioParam = createAudioParam({ context }, isOffline, constantSourceNode.offset, MOST_POSITIVE_SINGLE_FLOAT, MOST_NEGATIVE_SINGLE_FLOAT);
|
|
75
|
-
overwriteAccessors(audioParam, "value", (get) => () => get.call(audioParam), (set) => (value) => {
|
|
76
|
-
try {
|
|
77
|
-
set.call(audioParam, value);
|
|
78
|
-
} catch (err) {
|
|
79
|
-
if (err.code !== 9) {
|
|
80
|
-
throw err;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
createScriptProcessorNode();
|
|
84
|
-
if (isOffline) {
|
|
85
|
-
setValue(value);
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
audioParam.cancelAndHoldAtTime = ((cancelAndHoldAtTime) => {
|
|
89
|
-
if (isOffline) {
|
|
90
|
-
return () => {
|
|
91
|
-
throw createNotSupportedError();
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
return (...args) => {
|
|
95
|
-
const value = cancelAndHoldAtTime.apply(audioParam, args);
|
|
96
|
-
createScriptProcessorNode();
|
|
97
|
-
return value;
|
|
98
|
-
};
|
|
99
|
-
})(audioParam.cancelAndHoldAtTime);
|
|
100
|
-
audioParam.cancelScheduledValues = ((cancelScheduledValues) => {
|
|
101
|
-
if (isOffline) {
|
|
102
|
-
return () => {
|
|
103
|
-
throw createNotSupportedError();
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
return (...args) => {
|
|
107
|
-
const value = cancelScheduledValues.apply(audioParam, args);
|
|
108
|
-
createScriptProcessorNode();
|
|
109
|
-
return value;
|
|
110
|
-
};
|
|
111
|
-
})(audioParam.cancelScheduledValues);
|
|
112
|
-
audioParam.exponentialRampToValueAtTime = ((exponentialRampToValueAtTime) => {
|
|
113
|
-
if (isOffline) {
|
|
114
|
-
return () => {
|
|
115
|
-
throw createNotSupportedError();
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
return (...args) => {
|
|
119
|
-
const value = exponentialRampToValueAtTime.apply(audioParam, args);
|
|
120
|
-
createScriptProcessorNode();
|
|
121
|
-
return value;
|
|
122
|
-
};
|
|
123
|
-
})(audioParam.exponentialRampToValueAtTime);
|
|
124
|
-
audioParam.linearRampToValueAtTime = ((linearRampToValueAtTime) => {
|
|
125
|
-
if (isOffline) {
|
|
126
|
-
return () => {
|
|
127
|
-
throw createNotSupportedError();
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
return (...args) => {
|
|
131
|
-
const value = linearRampToValueAtTime.apply(audioParam, args);
|
|
132
|
-
createScriptProcessorNode();
|
|
133
|
-
return value;
|
|
134
|
-
};
|
|
135
|
-
})(audioParam.linearRampToValueAtTime);
|
|
136
|
-
audioParam.setTargetAtTime = ((setTargetAtTime) => {
|
|
137
|
-
if (isOffline) {
|
|
138
|
-
return () => {
|
|
139
|
-
throw createNotSupportedError();
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
return (...args) => {
|
|
143
|
-
const value = setTargetAtTime.apply(audioParam, args);
|
|
144
|
-
createScriptProcessorNode();
|
|
145
|
-
return value;
|
|
146
|
-
};
|
|
147
|
-
})(audioParam.setTargetAtTime);
|
|
148
|
-
audioParam.setValueAtTime = ((setValueAtTime) => {
|
|
149
|
-
if (isOffline) {
|
|
150
|
-
return () => {
|
|
151
|
-
throw createNotSupportedError();
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
return (...args) => {
|
|
155
|
-
const value = setValueAtTime.apply(audioParam, args);
|
|
156
|
-
createScriptProcessorNode();
|
|
157
|
-
return value;
|
|
158
|
-
};
|
|
159
|
-
})(audioParam.setValueAtTime);
|
|
160
|
-
audioParam.setValueCurveAtTime = ((setValueCurveAtTime) => {
|
|
161
|
-
if (isOffline) {
|
|
162
|
-
return () => {
|
|
163
|
-
throw createNotSupportedError();
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
return (...args) => {
|
|
167
|
-
const value = setValueCurveAtTime.apply(audioParam, args);
|
|
168
|
-
createScriptProcessorNode();
|
|
169
|
-
return value;
|
|
170
|
-
};
|
|
171
|
-
})(audioParam.setValueCurveAtTime);
|
|
172
|
-
return audioParam;
|
|
173
|
-
};
|
|
174
|
-
return {
|
|
175
|
-
forwardX: createFakeAudioParam(0, 0, createSetOrientation(0)),
|
|
176
|
-
forwardY: createFakeAudioParam(1, 0, createSetOrientation(1)),
|
|
177
|
-
forwardZ: createFakeAudioParam(2, -1, createSetOrientation(2)),
|
|
178
|
-
positionX: createFakeAudioParam(6, 0, createSetPosition(0)),
|
|
179
|
-
positionY: createFakeAudioParam(7, 0, createSetPosition(1)),
|
|
180
|
-
positionZ: createFakeAudioParam(8, 0, createSetPosition(2)),
|
|
181
|
-
upX: createFakeAudioParam(3, 0, createSetOrientation(3)),
|
|
182
|
-
upY: createFakeAudioParam(4, 1, createSetOrientation(4)),
|
|
183
|
-
upZ: createFakeAudioParam(5, 0, createSetOrientation(5))
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
const { forwardX, forwardY, forwardZ, positionX, positionY, positionZ, upX, upY, upZ } = nativeListener.forwardX === void 0 ? createFakeAudioParams() : nativeListener;
|
|
187
|
-
return {
|
|
188
|
-
get forwardX() {
|
|
189
|
-
return forwardX;
|
|
190
|
-
},
|
|
191
|
-
get forwardY() {
|
|
192
|
-
return forwardY;
|
|
193
|
-
},
|
|
194
|
-
get forwardZ() {
|
|
195
|
-
return forwardZ;
|
|
196
|
-
},
|
|
197
|
-
get positionX() {
|
|
198
|
-
return positionX;
|
|
199
|
-
},
|
|
200
|
-
get positionY() {
|
|
201
|
-
return positionY;
|
|
202
|
-
},
|
|
203
|
-
get positionZ() {
|
|
204
|
-
return positionZ;
|
|
205
|
-
},
|
|
206
|
-
get upX() {
|
|
207
|
-
return upX;
|
|
208
|
-
},
|
|
209
|
-
get upY() {
|
|
210
|
-
return upY;
|
|
211
|
-
},
|
|
212
|
-
get upZ() {
|
|
213
|
-
return upZ;
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
};
|
|
218
|
-
export {
|
|
219
|
-
createAudioListenerFactory
|
|
220
|
-
};
|