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,73 +0,0 @@
|
|
|
1
|
-
const DEFAULT_OPTIONS = {
|
|
2
|
-
channelCount: 2,
|
|
3
|
-
channelCountMode: "max",
|
|
4
|
-
channelInterpretation: "speakers",
|
|
5
|
-
fftSize: 2048,
|
|
6
|
-
maxDecibels: -30,
|
|
7
|
-
minDecibels: -100,
|
|
8
|
-
smoothingTimeConstant: 0.8
|
|
9
|
-
};
|
|
10
|
-
const createAnalyserNodeConstructor = (audionNodeConstructor, createAnalyserNodeRenderer, createIndexSizeError, createNativeAnalyserNode, getNativeContext, isNativeOfflineAudioContext) => {
|
|
11
|
-
return class AnalyserNode extends audionNodeConstructor {
|
|
12
|
-
constructor(context, options) {
|
|
13
|
-
const nativeContext = getNativeContext(context);
|
|
14
|
-
const mergedOptions = { ...DEFAULT_OPTIONS, ...options };
|
|
15
|
-
const nativeAnalyserNode = createNativeAnalyserNode(nativeContext, mergedOptions);
|
|
16
|
-
const analyserNodeRenderer = isNativeOfflineAudioContext(nativeContext) ? createAnalyserNodeRenderer() : null;
|
|
17
|
-
super(context, false, nativeAnalyserNode, analyserNodeRenderer);
|
|
18
|
-
this._nativeAnalyserNode = nativeAnalyserNode;
|
|
19
|
-
}
|
|
20
|
-
get fftSize() {
|
|
21
|
-
return this._nativeAnalyserNode.fftSize;
|
|
22
|
-
}
|
|
23
|
-
set fftSize(value) {
|
|
24
|
-
this._nativeAnalyserNode.fftSize = value;
|
|
25
|
-
}
|
|
26
|
-
get frequencyBinCount() {
|
|
27
|
-
return this._nativeAnalyserNode.frequencyBinCount;
|
|
28
|
-
}
|
|
29
|
-
get maxDecibels() {
|
|
30
|
-
return this._nativeAnalyserNode.maxDecibels;
|
|
31
|
-
}
|
|
32
|
-
set maxDecibels(value) {
|
|
33
|
-
const maxDecibels = this._nativeAnalyserNode.maxDecibels;
|
|
34
|
-
this._nativeAnalyserNode.maxDecibels = value;
|
|
35
|
-
if (!(value > this._nativeAnalyserNode.minDecibels)) {
|
|
36
|
-
this._nativeAnalyserNode.maxDecibels = maxDecibels;
|
|
37
|
-
throw createIndexSizeError();
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
get minDecibels() {
|
|
41
|
-
return this._nativeAnalyserNode.minDecibels;
|
|
42
|
-
}
|
|
43
|
-
set minDecibels(value) {
|
|
44
|
-
const minDecibels = this._nativeAnalyserNode.minDecibels;
|
|
45
|
-
this._nativeAnalyserNode.minDecibels = value;
|
|
46
|
-
if (!(this._nativeAnalyserNode.maxDecibels > value)) {
|
|
47
|
-
this._nativeAnalyserNode.minDecibels = minDecibels;
|
|
48
|
-
throw createIndexSizeError();
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
get smoothingTimeConstant() {
|
|
52
|
-
return this._nativeAnalyserNode.smoothingTimeConstant;
|
|
53
|
-
}
|
|
54
|
-
set smoothingTimeConstant(value) {
|
|
55
|
-
this._nativeAnalyserNode.smoothingTimeConstant = value;
|
|
56
|
-
}
|
|
57
|
-
getByteFrequencyData(array) {
|
|
58
|
-
this._nativeAnalyserNode.getByteFrequencyData(array);
|
|
59
|
-
}
|
|
60
|
-
getByteTimeDomainData(array) {
|
|
61
|
-
this._nativeAnalyserNode.getByteTimeDomainData(array);
|
|
62
|
-
}
|
|
63
|
-
getFloatFrequencyData(array) {
|
|
64
|
-
this._nativeAnalyserNode.getFloatFrequencyData(array);
|
|
65
|
-
}
|
|
66
|
-
getFloatTimeDomainData(array) {
|
|
67
|
-
this._nativeAnalyserNode.getFloatTimeDomainData(array);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
export {
|
|
72
|
-
createAnalyserNodeConstructor
|
|
73
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const isOwnedByContext = require("../helpers/is-owned-by-context.cjs");
|
|
4
|
-
const createAnalyserNodeRendererFactory = (createNativeAnalyserNode, getNativeAudioNode, renderInputsOfAudioNode) => {
|
|
5
|
-
return () => {
|
|
6
|
-
const renderedNativeAnalyserNodes = /* @__PURE__ */ new WeakMap();
|
|
7
|
-
const createAnalyserNode = async (proxy, nativeOfflineAudioContext) => {
|
|
8
|
-
let nativeAnalyserNode = getNativeAudioNode(proxy);
|
|
9
|
-
const nativeAnalyserNodeIsOwnedByContext = isOwnedByContext.isOwnedByContext(nativeAnalyserNode, nativeOfflineAudioContext);
|
|
10
|
-
if (!nativeAnalyserNodeIsOwnedByContext) {
|
|
11
|
-
const options = {
|
|
12
|
-
channelCount: nativeAnalyserNode.channelCount,
|
|
13
|
-
channelCountMode: nativeAnalyserNode.channelCountMode,
|
|
14
|
-
channelInterpretation: nativeAnalyserNode.channelInterpretation,
|
|
15
|
-
fftSize: nativeAnalyserNode.fftSize,
|
|
16
|
-
maxDecibels: nativeAnalyserNode.maxDecibels,
|
|
17
|
-
minDecibels: nativeAnalyserNode.minDecibels,
|
|
18
|
-
smoothingTimeConstant: nativeAnalyserNode.smoothingTimeConstant
|
|
19
|
-
};
|
|
20
|
-
nativeAnalyserNode = createNativeAnalyserNode(nativeOfflineAudioContext, options);
|
|
21
|
-
}
|
|
22
|
-
renderedNativeAnalyserNodes.set(nativeOfflineAudioContext, nativeAnalyserNode);
|
|
23
|
-
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeAnalyserNode);
|
|
24
|
-
return nativeAnalyserNode;
|
|
25
|
-
};
|
|
26
|
-
return {
|
|
27
|
-
render(proxy, nativeOfflineAudioContext) {
|
|
28
|
-
const renderedNativeAnalyserNode = renderedNativeAnalyserNodes.get(nativeOfflineAudioContext);
|
|
29
|
-
if (renderedNativeAnalyserNode !== void 0) {
|
|
30
|
-
return Promise.resolve(renderedNativeAnalyserNode);
|
|
31
|
-
}
|
|
32
|
-
return createAnalyserNode(proxy, nativeOfflineAudioContext);
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
exports.createAnalyserNodeRendererFactory = createAnalyserNodeRendererFactory;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { isOwnedByContext } from "../helpers/is-owned-by-context.js";
|
|
2
|
-
const createAnalyserNodeRendererFactory = (createNativeAnalyserNode, getNativeAudioNode, renderInputsOfAudioNode) => {
|
|
3
|
-
return () => {
|
|
4
|
-
const renderedNativeAnalyserNodes = /* @__PURE__ */ new WeakMap();
|
|
5
|
-
const createAnalyserNode = async (proxy, nativeOfflineAudioContext) => {
|
|
6
|
-
let nativeAnalyserNode = getNativeAudioNode(proxy);
|
|
7
|
-
const nativeAnalyserNodeIsOwnedByContext = isOwnedByContext(nativeAnalyserNode, nativeOfflineAudioContext);
|
|
8
|
-
if (!nativeAnalyserNodeIsOwnedByContext) {
|
|
9
|
-
const options = {
|
|
10
|
-
channelCount: nativeAnalyserNode.channelCount,
|
|
11
|
-
channelCountMode: nativeAnalyserNode.channelCountMode,
|
|
12
|
-
channelInterpretation: nativeAnalyserNode.channelInterpretation,
|
|
13
|
-
fftSize: nativeAnalyserNode.fftSize,
|
|
14
|
-
maxDecibels: nativeAnalyserNode.maxDecibels,
|
|
15
|
-
minDecibels: nativeAnalyserNode.minDecibels,
|
|
16
|
-
smoothingTimeConstant: nativeAnalyserNode.smoothingTimeConstant
|
|
17
|
-
};
|
|
18
|
-
nativeAnalyserNode = createNativeAnalyserNode(nativeOfflineAudioContext, options);
|
|
19
|
-
}
|
|
20
|
-
renderedNativeAnalyserNodes.set(nativeOfflineAudioContext, nativeAnalyserNode);
|
|
21
|
-
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeAnalyserNode);
|
|
22
|
-
return nativeAnalyserNode;
|
|
23
|
-
};
|
|
24
|
-
return {
|
|
25
|
-
render(proxy, nativeOfflineAudioContext) {
|
|
26
|
-
const renderedNativeAnalyserNode = renderedNativeAnalyserNodes.get(nativeOfflineAudioContext);
|
|
27
|
-
if (renderedNativeAnalyserNode !== void 0) {
|
|
28
|
-
return Promise.resolve(renderedNativeAnalyserNode);
|
|
29
|
-
}
|
|
30
|
-
return createAnalyserNode(proxy, nativeOfflineAudioContext);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export {
|
|
36
|
-
createAnalyserNodeRendererFactory
|
|
37
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const testAudioBufferCopyChannelMethodsOutOfBoundsSupport = require("../helpers/test-audio-buffer-copy-channel-methods-out-of-bounds-support.cjs");
|
|
4
|
-
const wrapAudioBufferGetChannelDataMethod = require("../helpers/wrap-audio-buffer-get-channel-data-method.cjs");
|
|
5
|
-
const DEFAULT_OPTIONS = {
|
|
6
|
-
numberOfChannels: 1
|
|
7
|
-
};
|
|
8
|
-
const createAudioBufferConstructor = (audioBufferStore, cacheTestResult, createNotSupportedError, nativeAudioBufferConstructor, nativeOfflineAudioContextConstructor, testNativeAudioBufferConstructorSupport, wrapAudioBufferCopyChannelMethods, wrapAudioBufferCopyChannelMethodsOutOfBounds) => {
|
|
9
|
-
let nativeOfflineAudioContext = null;
|
|
10
|
-
return class AudioBuffer {
|
|
11
|
-
constructor(options) {
|
|
12
|
-
if (nativeOfflineAudioContextConstructor === null) {
|
|
13
|
-
throw new Error("Missing the native OfflineAudioContext constructor.");
|
|
14
|
-
}
|
|
15
|
-
const { length, numberOfChannels, sampleRate } = { ...DEFAULT_OPTIONS, ...options };
|
|
16
|
-
if (nativeOfflineAudioContext === null) {
|
|
17
|
-
nativeOfflineAudioContext = new nativeOfflineAudioContextConstructor(1, 1, 44100);
|
|
18
|
-
}
|
|
19
|
-
const audioBuffer = nativeAudioBufferConstructor !== null && cacheTestResult(testNativeAudioBufferConstructorSupport, testNativeAudioBufferConstructorSupport) ? new nativeAudioBufferConstructor({ length, numberOfChannels, sampleRate }) : nativeOfflineAudioContext.createBuffer(numberOfChannels, length, sampleRate);
|
|
20
|
-
if (audioBuffer.numberOfChannels === 0) {
|
|
21
|
-
throw createNotSupportedError();
|
|
22
|
-
}
|
|
23
|
-
if (typeof audioBuffer.copyFromChannel !== "function") {
|
|
24
|
-
wrapAudioBufferCopyChannelMethods(audioBuffer);
|
|
25
|
-
wrapAudioBufferGetChannelDataMethod.wrapAudioBufferGetChannelDataMethod(audioBuffer);
|
|
26
|
-
} else if (!cacheTestResult(testAudioBufferCopyChannelMethodsOutOfBoundsSupport.testAudioBufferCopyChannelMethodsOutOfBoundsSupport, () => testAudioBufferCopyChannelMethodsOutOfBoundsSupport.testAudioBufferCopyChannelMethodsOutOfBoundsSupport(audioBuffer))) {
|
|
27
|
-
wrapAudioBufferCopyChannelMethodsOutOfBounds(audioBuffer);
|
|
28
|
-
}
|
|
29
|
-
audioBufferStore.add(audioBuffer);
|
|
30
|
-
return audioBuffer;
|
|
31
|
-
}
|
|
32
|
-
static [Symbol.hasInstance](instance) {
|
|
33
|
-
return instance !== null && typeof instance === "object" && Object.getPrototypeOf(instance) === AudioBuffer.prototype || audioBufferStore.has(instance);
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
exports.createAudioBufferConstructor = createAudioBufferConstructor;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { testAudioBufferCopyChannelMethodsOutOfBoundsSupport } from "../helpers/test-audio-buffer-copy-channel-methods-out-of-bounds-support.js";
|
|
2
|
-
import { wrapAudioBufferGetChannelDataMethod } from "../helpers/wrap-audio-buffer-get-channel-data-method.js";
|
|
3
|
-
const DEFAULT_OPTIONS = {
|
|
4
|
-
numberOfChannels: 1
|
|
5
|
-
};
|
|
6
|
-
const createAudioBufferConstructor = (audioBufferStore, cacheTestResult, createNotSupportedError, nativeAudioBufferConstructor, nativeOfflineAudioContextConstructor, testNativeAudioBufferConstructorSupport, wrapAudioBufferCopyChannelMethods, wrapAudioBufferCopyChannelMethodsOutOfBounds) => {
|
|
7
|
-
let nativeOfflineAudioContext = null;
|
|
8
|
-
return class AudioBuffer {
|
|
9
|
-
constructor(options) {
|
|
10
|
-
if (nativeOfflineAudioContextConstructor === null) {
|
|
11
|
-
throw new Error("Missing the native OfflineAudioContext constructor.");
|
|
12
|
-
}
|
|
13
|
-
const { length, numberOfChannels, sampleRate } = { ...DEFAULT_OPTIONS, ...options };
|
|
14
|
-
if (nativeOfflineAudioContext === null) {
|
|
15
|
-
nativeOfflineAudioContext = new nativeOfflineAudioContextConstructor(1, 1, 44100);
|
|
16
|
-
}
|
|
17
|
-
const audioBuffer = nativeAudioBufferConstructor !== null && cacheTestResult(testNativeAudioBufferConstructorSupport, testNativeAudioBufferConstructorSupport) ? new nativeAudioBufferConstructor({ length, numberOfChannels, sampleRate }) : nativeOfflineAudioContext.createBuffer(numberOfChannels, length, sampleRate);
|
|
18
|
-
if (audioBuffer.numberOfChannels === 0) {
|
|
19
|
-
throw createNotSupportedError();
|
|
20
|
-
}
|
|
21
|
-
if (typeof audioBuffer.copyFromChannel !== "function") {
|
|
22
|
-
wrapAudioBufferCopyChannelMethods(audioBuffer);
|
|
23
|
-
wrapAudioBufferGetChannelDataMethod(audioBuffer);
|
|
24
|
-
} else if (!cacheTestResult(testAudioBufferCopyChannelMethodsOutOfBoundsSupport, () => testAudioBufferCopyChannelMethodsOutOfBoundsSupport(audioBuffer))) {
|
|
25
|
-
wrapAudioBufferCopyChannelMethodsOutOfBounds(audioBuffer);
|
|
26
|
-
}
|
|
27
|
-
audioBufferStore.add(audioBuffer);
|
|
28
|
-
return audioBuffer;
|
|
29
|
-
}
|
|
30
|
-
static [Symbol.hasInstance](instance) {
|
|
31
|
-
return instance !== null && typeof instance === "object" && Object.getPrototypeOf(instance) === AudioBuffer.prototype || audioBufferStore.has(instance);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export {
|
|
36
|
-
createAudioBufferConstructor
|
|
37
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const constants = require("../constants.cjs");
|
|
4
|
-
const isActiveAudioNode = require("../helpers/is-active-audio-node.cjs");
|
|
5
|
-
const setInternalStateToActive = require("../helpers/set-internal-state-to-active.cjs");
|
|
6
|
-
const setInternalStateToPassive = require("../helpers/set-internal-state-to-passive.cjs");
|
|
7
|
-
const DEFAULT_OPTIONS = {
|
|
8
|
-
buffer: null,
|
|
9
|
-
channelCount: 2,
|
|
10
|
-
channelCountMode: "max",
|
|
11
|
-
channelInterpretation: "speakers",
|
|
12
|
-
// Bug #149: Safari does not yet support the detune AudioParam.
|
|
13
|
-
loop: false,
|
|
14
|
-
loopEnd: 0,
|
|
15
|
-
loopStart: 0,
|
|
16
|
-
playbackRate: 1
|
|
17
|
-
};
|
|
18
|
-
const createAudioBufferSourceNodeConstructor = (audioNodeConstructor, createAudioBufferSourceNodeRenderer, createAudioParam, createInvalidStateError, createNativeAudioBufferSourceNode, getNativeContext, isNativeOfflineAudioContext, wrapEventListener) => {
|
|
19
|
-
return class AudioBufferSourceNode extends audioNodeConstructor {
|
|
20
|
-
constructor(context, options) {
|
|
21
|
-
const nativeContext = getNativeContext(context);
|
|
22
|
-
const mergedOptions = { ...DEFAULT_OPTIONS, ...options };
|
|
23
|
-
const nativeAudioBufferSourceNode = createNativeAudioBufferSourceNode(nativeContext, mergedOptions);
|
|
24
|
-
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
25
|
-
const audioBufferSourceNodeRenderer = isOffline ? createAudioBufferSourceNodeRenderer() : null;
|
|
26
|
-
super(context, false, nativeAudioBufferSourceNode, audioBufferSourceNodeRenderer);
|
|
27
|
-
this._audioBufferSourceNodeRenderer = audioBufferSourceNodeRenderer;
|
|
28
|
-
this._isBufferNullified = false;
|
|
29
|
-
this._isBufferSet = mergedOptions.buffer !== null;
|
|
30
|
-
this._nativeAudioBufferSourceNode = nativeAudioBufferSourceNode;
|
|
31
|
-
this._onended = null;
|
|
32
|
-
this._playbackRate = createAudioParam(this, isOffline, nativeAudioBufferSourceNode.playbackRate, constants.MOST_POSITIVE_SINGLE_FLOAT, constants.MOST_NEGATIVE_SINGLE_FLOAT);
|
|
33
|
-
}
|
|
34
|
-
get buffer() {
|
|
35
|
-
if (this._isBufferNullified) {
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
return this._nativeAudioBufferSourceNode.buffer;
|
|
39
|
-
}
|
|
40
|
-
set buffer(value) {
|
|
41
|
-
this._nativeAudioBufferSourceNode.buffer = value;
|
|
42
|
-
if (value !== null) {
|
|
43
|
-
if (this._isBufferSet) {
|
|
44
|
-
throw createInvalidStateError();
|
|
45
|
-
}
|
|
46
|
-
this._isBufferSet = true;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
get loop() {
|
|
50
|
-
return this._nativeAudioBufferSourceNode.loop;
|
|
51
|
-
}
|
|
52
|
-
set loop(value) {
|
|
53
|
-
this._nativeAudioBufferSourceNode.loop = value;
|
|
54
|
-
}
|
|
55
|
-
get loopEnd() {
|
|
56
|
-
return this._nativeAudioBufferSourceNode.loopEnd;
|
|
57
|
-
}
|
|
58
|
-
set loopEnd(value) {
|
|
59
|
-
this._nativeAudioBufferSourceNode.loopEnd = value;
|
|
60
|
-
}
|
|
61
|
-
get loopStart() {
|
|
62
|
-
return this._nativeAudioBufferSourceNode.loopStart;
|
|
63
|
-
}
|
|
64
|
-
set loopStart(value) {
|
|
65
|
-
this._nativeAudioBufferSourceNode.loopStart = value;
|
|
66
|
-
}
|
|
67
|
-
get onended() {
|
|
68
|
-
return this._onended;
|
|
69
|
-
}
|
|
70
|
-
set onended(value) {
|
|
71
|
-
const wrappedListener = typeof value === "function" ? wrapEventListener(this, value) : null;
|
|
72
|
-
this._nativeAudioBufferSourceNode.onended = wrappedListener;
|
|
73
|
-
const nativeOnEnded = this._nativeAudioBufferSourceNode.onended;
|
|
74
|
-
this._onended = nativeOnEnded !== null && nativeOnEnded === wrappedListener ? value : nativeOnEnded;
|
|
75
|
-
}
|
|
76
|
-
get playbackRate() {
|
|
77
|
-
return this._playbackRate;
|
|
78
|
-
}
|
|
79
|
-
start(when = 0, offset = 0, duration) {
|
|
80
|
-
this._nativeAudioBufferSourceNode.start(when, offset, duration);
|
|
81
|
-
if (this._audioBufferSourceNodeRenderer !== null) {
|
|
82
|
-
this._audioBufferSourceNodeRenderer.start = duration === void 0 ? [when, offset] : [when, offset, duration];
|
|
83
|
-
}
|
|
84
|
-
if (this.context.state !== "closed") {
|
|
85
|
-
setInternalStateToActive.setInternalStateToActive(this);
|
|
86
|
-
const resetInternalStateToPassive = () => {
|
|
87
|
-
this._nativeAudioBufferSourceNode.removeEventListener("ended", resetInternalStateToPassive);
|
|
88
|
-
if (isActiveAudioNode.isActiveAudioNode(this)) {
|
|
89
|
-
setInternalStateToPassive.setInternalStateToPassive(this);
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
this._nativeAudioBufferSourceNode.addEventListener("ended", resetInternalStateToPassive);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
stop(when = 0) {
|
|
96
|
-
this._nativeAudioBufferSourceNode.stop(when);
|
|
97
|
-
if (this._audioBufferSourceNodeRenderer !== null) {
|
|
98
|
-
this._audioBufferSourceNodeRenderer.stop = when;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
exports.createAudioBufferSourceNodeConstructor = createAudioBufferSourceNodeConstructor;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { MOST_POSITIVE_SINGLE_FLOAT, MOST_NEGATIVE_SINGLE_FLOAT } from "../constants.js";
|
|
2
|
-
import { isActiveAudioNode } from "../helpers/is-active-audio-node.js";
|
|
3
|
-
import { setInternalStateToActive } from "../helpers/set-internal-state-to-active.js";
|
|
4
|
-
import { setInternalStateToPassive } from "../helpers/set-internal-state-to-passive.js";
|
|
5
|
-
const DEFAULT_OPTIONS = {
|
|
6
|
-
buffer: null,
|
|
7
|
-
channelCount: 2,
|
|
8
|
-
channelCountMode: "max",
|
|
9
|
-
channelInterpretation: "speakers",
|
|
10
|
-
// Bug #149: Safari does not yet support the detune AudioParam.
|
|
11
|
-
loop: false,
|
|
12
|
-
loopEnd: 0,
|
|
13
|
-
loopStart: 0,
|
|
14
|
-
playbackRate: 1
|
|
15
|
-
};
|
|
16
|
-
const createAudioBufferSourceNodeConstructor = (audioNodeConstructor, createAudioBufferSourceNodeRenderer, createAudioParam, createInvalidStateError, createNativeAudioBufferSourceNode, getNativeContext, isNativeOfflineAudioContext, wrapEventListener) => {
|
|
17
|
-
return class AudioBufferSourceNode extends audioNodeConstructor {
|
|
18
|
-
constructor(context, options) {
|
|
19
|
-
const nativeContext = getNativeContext(context);
|
|
20
|
-
const mergedOptions = { ...DEFAULT_OPTIONS, ...options };
|
|
21
|
-
const nativeAudioBufferSourceNode = createNativeAudioBufferSourceNode(nativeContext, mergedOptions);
|
|
22
|
-
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
23
|
-
const audioBufferSourceNodeRenderer = isOffline ? createAudioBufferSourceNodeRenderer() : null;
|
|
24
|
-
super(context, false, nativeAudioBufferSourceNode, audioBufferSourceNodeRenderer);
|
|
25
|
-
this._audioBufferSourceNodeRenderer = audioBufferSourceNodeRenderer;
|
|
26
|
-
this._isBufferNullified = false;
|
|
27
|
-
this._isBufferSet = mergedOptions.buffer !== null;
|
|
28
|
-
this._nativeAudioBufferSourceNode = nativeAudioBufferSourceNode;
|
|
29
|
-
this._onended = null;
|
|
30
|
-
this._playbackRate = createAudioParam(this, isOffline, nativeAudioBufferSourceNode.playbackRate, MOST_POSITIVE_SINGLE_FLOAT, MOST_NEGATIVE_SINGLE_FLOAT);
|
|
31
|
-
}
|
|
32
|
-
get buffer() {
|
|
33
|
-
if (this._isBufferNullified) {
|
|
34
|
-
return null;
|
|
35
|
-
}
|
|
36
|
-
return this._nativeAudioBufferSourceNode.buffer;
|
|
37
|
-
}
|
|
38
|
-
set buffer(value) {
|
|
39
|
-
this._nativeAudioBufferSourceNode.buffer = value;
|
|
40
|
-
if (value !== null) {
|
|
41
|
-
if (this._isBufferSet) {
|
|
42
|
-
throw createInvalidStateError();
|
|
43
|
-
}
|
|
44
|
-
this._isBufferSet = true;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
get loop() {
|
|
48
|
-
return this._nativeAudioBufferSourceNode.loop;
|
|
49
|
-
}
|
|
50
|
-
set loop(value) {
|
|
51
|
-
this._nativeAudioBufferSourceNode.loop = value;
|
|
52
|
-
}
|
|
53
|
-
get loopEnd() {
|
|
54
|
-
return this._nativeAudioBufferSourceNode.loopEnd;
|
|
55
|
-
}
|
|
56
|
-
set loopEnd(value) {
|
|
57
|
-
this._nativeAudioBufferSourceNode.loopEnd = value;
|
|
58
|
-
}
|
|
59
|
-
get loopStart() {
|
|
60
|
-
return this._nativeAudioBufferSourceNode.loopStart;
|
|
61
|
-
}
|
|
62
|
-
set loopStart(value) {
|
|
63
|
-
this._nativeAudioBufferSourceNode.loopStart = value;
|
|
64
|
-
}
|
|
65
|
-
get onended() {
|
|
66
|
-
return this._onended;
|
|
67
|
-
}
|
|
68
|
-
set onended(value) {
|
|
69
|
-
const wrappedListener = typeof value === "function" ? wrapEventListener(this, value) : null;
|
|
70
|
-
this._nativeAudioBufferSourceNode.onended = wrappedListener;
|
|
71
|
-
const nativeOnEnded = this._nativeAudioBufferSourceNode.onended;
|
|
72
|
-
this._onended = nativeOnEnded !== null && nativeOnEnded === wrappedListener ? value : nativeOnEnded;
|
|
73
|
-
}
|
|
74
|
-
get playbackRate() {
|
|
75
|
-
return this._playbackRate;
|
|
76
|
-
}
|
|
77
|
-
start(when = 0, offset = 0, duration) {
|
|
78
|
-
this._nativeAudioBufferSourceNode.start(when, offset, duration);
|
|
79
|
-
if (this._audioBufferSourceNodeRenderer !== null) {
|
|
80
|
-
this._audioBufferSourceNodeRenderer.start = duration === void 0 ? [when, offset] : [when, offset, duration];
|
|
81
|
-
}
|
|
82
|
-
if (this.context.state !== "closed") {
|
|
83
|
-
setInternalStateToActive(this);
|
|
84
|
-
const resetInternalStateToPassive = () => {
|
|
85
|
-
this._nativeAudioBufferSourceNode.removeEventListener("ended", resetInternalStateToPassive);
|
|
86
|
-
if (isActiveAudioNode(this)) {
|
|
87
|
-
setInternalStateToPassive(this);
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
this._nativeAudioBufferSourceNode.addEventListener("ended", resetInternalStateToPassive);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
stop(when = 0) {
|
|
94
|
-
this._nativeAudioBufferSourceNode.stop(when);
|
|
95
|
-
if (this._audioBufferSourceNodeRenderer !== null) {
|
|
96
|
-
this._audioBufferSourceNodeRenderer.stop = when;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
export {
|
|
102
|
-
createAudioBufferSourceNodeConstructor
|
|
103
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const isOwnedByContext = require("../helpers/is-owned-by-context.cjs");
|
|
4
|
-
const createAudioBufferSourceNodeRendererFactory = (connectAudioParam, createNativeAudioBufferSourceNode, getNativeAudioNode, renderAutomation, renderInputsOfAudioNode) => {
|
|
5
|
-
return () => {
|
|
6
|
-
const renderedNativeAudioBufferSourceNodes = /* @__PURE__ */ new WeakMap();
|
|
7
|
-
let start = null;
|
|
8
|
-
let stop = null;
|
|
9
|
-
const createAudioBufferSourceNode = async (proxy, nativeOfflineAudioContext) => {
|
|
10
|
-
let nativeAudioBufferSourceNode = getNativeAudioNode(proxy);
|
|
11
|
-
const nativeAudioBufferSourceNodeIsOwnedByContext = isOwnedByContext.isOwnedByContext(nativeAudioBufferSourceNode, nativeOfflineAudioContext);
|
|
12
|
-
if (!nativeAudioBufferSourceNodeIsOwnedByContext) {
|
|
13
|
-
const options = {
|
|
14
|
-
buffer: nativeAudioBufferSourceNode.buffer,
|
|
15
|
-
channelCount: nativeAudioBufferSourceNode.channelCount,
|
|
16
|
-
channelCountMode: nativeAudioBufferSourceNode.channelCountMode,
|
|
17
|
-
channelInterpretation: nativeAudioBufferSourceNode.channelInterpretation,
|
|
18
|
-
// Bug #149: Safari does not yet support the detune AudioParam.
|
|
19
|
-
loop: nativeAudioBufferSourceNode.loop,
|
|
20
|
-
loopEnd: nativeAudioBufferSourceNode.loopEnd,
|
|
21
|
-
loopStart: nativeAudioBufferSourceNode.loopStart,
|
|
22
|
-
playbackRate: nativeAudioBufferSourceNode.playbackRate.value
|
|
23
|
-
};
|
|
24
|
-
nativeAudioBufferSourceNode = createNativeAudioBufferSourceNode(nativeOfflineAudioContext, options);
|
|
25
|
-
if (start !== null) {
|
|
26
|
-
nativeAudioBufferSourceNode.start(...start);
|
|
27
|
-
}
|
|
28
|
-
if (stop !== null) {
|
|
29
|
-
nativeAudioBufferSourceNode.stop(stop);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
renderedNativeAudioBufferSourceNodes.set(nativeOfflineAudioContext, nativeAudioBufferSourceNode);
|
|
33
|
-
if (!nativeAudioBufferSourceNodeIsOwnedByContext) {
|
|
34
|
-
await renderAutomation(nativeOfflineAudioContext, proxy.playbackRate, nativeAudioBufferSourceNode.playbackRate);
|
|
35
|
-
} else {
|
|
36
|
-
await connectAudioParam(nativeOfflineAudioContext, proxy.playbackRate, nativeAudioBufferSourceNode.playbackRate);
|
|
37
|
-
}
|
|
38
|
-
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeAudioBufferSourceNode);
|
|
39
|
-
return nativeAudioBufferSourceNode;
|
|
40
|
-
};
|
|
41
|
-
return {
|
|
42
|
-
set start(value) {
|
|
43
|
-
start = value;
|
|
44
|
-
},
|
|
45
|
-
set stop(value) {
|
|
46
|
-
stop = value;
|
|
47
|
-
},
|
|
48
|
-
render(proxy, nativeOfflineAudioContext) {
|
|
49
|
-
const renderedNativeAudioBufferSourceNode = renderedNativeAudioBufferSourceNodes.get(nativeOfflineAudioContext);
|
|
50
|
-
if (renderedNativeAudioBufferSourceNode !== void 0) {
|
|
51
|
-
return Promise.resolve(renderedNativeAudioBufferSourceNode);
|
|
52
|
-
}
|
|
53
|
-
return createAudioBufferSourceNode(proxy, nativeOfflineAudioContext);
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
exports.createAudioBufferSourceNodeRendererFactory = createAudioBufferSourceNodeRendererFactory;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { isOwnedByContext } from "../helpers/is-owned-by-context.js";
|
|
2
|
-
const createAudioBufferSourceNodeRendererFactory = (connectAudioParam, createNativeAudioBufferSourceNode, getNativeAudioNode, renderAutomation, renderInputsOfAudioNode) => {
|
|
3
|
-
return () => {
|
|
4
|
-
const renderedNativeAudioBufferSourceNodes = /* @__PURE__ */ new WeakMap();
|
|
5
|
-
let start = null;
|
|
6
|
-
let stop = null;
|
|
7
|
-
const createAudioBufferSourceNode = async (proxy, nativeOfflineAudioContext) => {
|
|
8
|
-
let nativeAudioBufferSourceNode = getNativeAudioNode(proxy);
|
|
9
|
-
const nativeAudioBufferSourceNodeIsOwnedByContext = isOwnedByContext(nativeAudioBufferSourceNode, nativeOfflineAudioContext);
|
|
10
|
-
if (!nativeAudioBufferSourceNodeIsOwnedByContext) {
|
|
11
|
-
const options = {
|
|
12
|
-
buffer: nativeAudioBufferSourceNode.buffer,
|
|
13
|
-
channelCount: nativeAudioBufferSourceNode.channelCount,
|
|
14
|
-
channelCountMode: nativeAudioBufferSourceNode.channelCountMode,
|
|
15
|
-
channelInterpretation: nativeAudioBufferSourceNode.channelInterpretation,
|
|
16
|
-
// Bug #149: Safari does not yet support the detune AudioParam.
|
|
17
|
-
loop: nativeAudioBufferSourceNode.loop,
|
|
18
|
-
loopEnd: nativeAudioBufferSourceNode.loopEnd,
|
|
19
|
-
loopStart: nativeAudioBufferSourceNode.loopStart,
|
|
20
|
-
playbackRate: nativeAudioBufferSourceNode.playbackRate.value
|
|
21
|
-
};
|
|
22
|
-
nativeAudioBufferSourceNode = createNativeAudioBufferSourceNode(nativeOfflineAudioContext, options);
|
|
23
|
-
if (start !== null) {
|
|
24
|
-
nativeAudioBufferSourceNode.start(...start);
|
|
25
|
-
}
|
|
26
|
-
if (stop !== null) {
|
|
27
|
-
nativeAudioBufferSourceNode.stop(stop);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
renderedNativeAudioBufferSourceNodes.set(nativeOfflineAudioContext, nativeAudioBufferSourceNode);
|
|
31
|
-
if (!nativeAudioBufferSourceNodeIsOwnedByContext) {
|
|
32
|
-
await renderAutomation(nativeOfflineAudioContext, proxy.playbackRate, nativeAudioBufferSourceNode.playbackRate);
|
|
33
|
-
} else {
|
|
34
|
-
await connectAudioParam(nativeOfflineAudioContext, proxy.playbackRate, nativeAudioBufferSourceNode.playbackRate);
|
|
35
|
-
}
|
|
36
|
-
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeAudioBufferSourceNode);
|
|
37
|
-
return nativeAudioBufferSourceNode;
|
|
38
|
-
};
|
|
39
|
-
return {
|
|
40
|
-
set start(value) {
|
|
41
|
-
start = value;
|
|
42
|
-
},
|
|
43
|
-
set stop(value) {
|
|
44
|
-
stop = value;
|
|
45
|
-
},
|
|
46
|
-
render(proxy, nativeOfflineAudioContext) {
|
|
47
|
-
const renderedNativeAudioBufferSourceNode = renderedNativeAudioBufferSourceNodes.get(nativeOfflineAudioContext);
|
|
48
|
-
if (renderedNativeAudioBufferSourceNode !== void 0) {
|
|
49
|
-
return Promise.resolve(renderedNativeAudioBufferSourceNode);
|
|
50
|
-
}
|
|
51
|
-
return createAudioBufferSourceNode(proxy, nativeOfflineAudioContext);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
export {
|
|
57
|
-
createAudioBufferSourceNodeRendererFactory
|
|
58
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const createAudioDestinationNodeConstructor = (audioNodeConstructor, createAudioDestinationNodeRenderer, createIndexSizeError, createInvalidStateError, createNativeAudioDestinationNode, getNativeContext, isNativeOfflineAudioContext, renderInputsOfAudioNode) => {
|
|
4
|
-
return class AudioDestinationNode extends audioNodeConstructor {
|
|
5
|
-
constructor(context, channelCount) {
|
|
6
|
-
const nativeContext = getNativeContext(context);
|
|
7
|
-
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
8
|
-
const nativeAudioDestinationNode = createNativeAudioDestinationNode(nativeContext, channelCount, isOffline);
|
|
9
|
-
const audioDestinationNodeRenderer = isOffline ? createAudioDestinationNodeRenderer(renderInputsOfAudioNode) : null;
|
|
10
|
-
super(context, false, nativeAudioDestinationNode, audioDestinationNodeRenderer);
|
|
11
|
-
this._isNodeOfNativeOfflineAudioContext = isOffline;
|
|
12
|
-
this._nativeAudioDestinationNode = nativeAudioDestinationNode;
|
|
13
|
-
}
|
|
14
|
-
get channelCount() {
|
|
15
|
-
return this._nativeAudioDestinationNode.channelCount;
|
|
16
|
-
}
|
|
17
|
-
set channelCount(value) {
|
|
18
|
-
if (this._isNodeOfNativeOfflineAudioContext) {
|
|
19
|
-
throw createInvalidStateError();
|
|
20
|
-
}
|
|
21
|
-
if (value > this._nativeAudioDestinationNode.maxChannelCount) {
|
|
22
|
-
throw createIndexSizeError();
|
|
23
|
-
}
|
|
24
|
-
this._nativeAudioDestinationNode.channelCount = value;
|
|
25
|
-
}
|
|
26
|
-
get channelCountMode() {
|
|
27
|
-
return this._nativeAudioDestinationNode.channelCountMode;
|
|
28
|
-
}
|
|
29
|
-
set channelCountMode(value) {
|
|
30
|
-
if (this._isNodeOfNativeOfflineAudioContext) {
|
|
31
|
-
throw createInvalidStateError();
|
|
32
|
-
}
|
|
33
|
-
this._nativeAudioDestinationNode.channelCountMode = value;
|
|
34
|
-
}
|
|
35
|
-
get maxChannelCount() {
|
|
36
|
-
return this._nativeAudioDestinationNode.maxChannelCount;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
exports.createAudioDestinationNodeConstructor = createAudioDestinationNodeConstructor;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const createAudioDestinationNodeConstructor = (audioNodeConstructor, createAudioDestinationNodeRenderer, createIndexSizeError, createInvalidStateError, createNativeAudioDestinationNode, getNativeContext, isNativeOfflineAudioContext, renderInputsOfAudioNode) => {
|
|
2
|
-
return class AudioDestinationNode extends audioNodeConstructor {
|
|
3
|
-
constructor(context, channelCount) {
|
|
4
|
-
const nativeContext = getNativeContext(context);
|
|
5
|
-
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
6
|
-
const nativeAudioDestinationNode = createNativeAudioDestinationNode(nativeContext, channelCount, isOffline);
|
|
7
|
-
const audioDestinationNodeRenderer = isOffline ? createAudioDestinationNodeRenderer(renderInputsOfAudioNode) : null;
|
|
8
|
-
super(context, false, nativeAudioDestinationNode, audioDestinationNodeRenderer);
|
|
9
|
-
this._isNodeOfNativeOfflineAudioContext = isOffline;
|
|
10
|
-
this._nativeAudioDestinationNode = nativeAudioDestinationNode;
|
|
11
|
-
}
|
|
12
|
-
get channelCount() {
|
|
13
|
-
return this._nativeAudioDestinationNode.channelCount;
|
|
14
|
-
}
|
|
15
|
-
set channelCount(value) {
|
|
16
|
-
if (this._isNodeOfNativeOfflineAudioContext) {
|
|
17
|
-
throw createInvalidStateError();
|
|
18
|
-
}
|
|
19
|
-
if (value > this._nativeAudioDestinationNode.maxChannelCount) {
|
|
20
|
-
throw createIndexSizeError();
|
|
21
|
-
}
|
|
22
|
-
this._nativeAudioDestinationNode.channelCount = value;
|
|
23
|
-
}
|
|
24
|
-
get channelCountMode() {
|
|
25
|
-
return this._nativeAudioDestinationNode.channelCountMode;
|
|
26
|
-
}
|
|
27
|
-
set channelCountMode(value) {
|
|
28
|
-
if (this._isNodeOfNativeOfflineAudioContext) {
|
|
29
|
-
throw createInvalidStateError();
|
|
30
|
-
}
|
|
31
|
-
this._nativeAudioDestinationNode.channelCountMode = value;
|
|
32
|
-
}
|
|
33
|
-
get maxChannelCount() {
|
|
34
|
-
return this._nativeAudioDestinationNode.maxChannelCount;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
export {
|
|
39
|
-
createAudioDestinationNodeConstructor
|
|
40
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const createAudioDestinationNodeRenderer = (renderInputsOfAudioNode) => {
|
|
4
|
-
const renderedNativeAudioDestinationNodes = /* @__PURE__ */ new WeakMap();
|
|
5
|
-
const createAudioDestinationNode = async (proxy, nativeOfflineAudioContext) => {
|
|
6
|
-
const nativeAudioDestinationNode = nativeOfflineAudioContext.destination;
|
|
7
|
-
renderedNativeAudioDestinationNodes.set(nativeOfflineAudioContext, nativeAudioDestinationNode);
|
|
8
|
-
await renderInputsOfAudioNode(proxy, nativeOfflineAudioContext, nativeAudioDestinationNode);
|
|
9
|
-
return nativeAudioDestinationNode;
|
|
10
|
-
};
|
|
11
|
-
return {
|
|
12
|
-
render(proxy, nativeOfflineAudioContext) {
|
|
13
|
-
const renderedNativeAudioDestinationNode = renderedNativeAudioDestinationNodes.get(nativeOfflineAudioContext);
|
|
14
|
-
if (renderedNativeAudioDestinationNode !== void 0) {
|
|
15
|
-
return Promise.resolve(renderedNativeAudioDestinationNode);
|
|
16
|
-
}
|
|
17
|
-
return createAudioDestinationNode(proxy, nativeOfflineAudioContext);
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
exports.createAudioDestinationNodeRenderer = createAudioDestinationNodeRenderer;
|