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
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const MPEGDecoder = require("./src/MPEGDecoder.cjs");
|
|
4
|
+
const MPEGDecoderWebWorker = require("./src/MPEGDecoderWebWorker.cjs");
|
|
5
|
+
const utilities = require("../@wasm-audio-decoders/common/src/utilities.cjs");
|
|
6
|
+
utilities.assignNames(MPEGDecoder.default, "MPEGDecoder");
|
|
7
|
+
utilities.assignNames(MPEGDecoderWebWorker.default, "MPEGDecoderWebWorker");
|
|
8
|
+
exports.MPEGDecoder = MPEGDecoder.default;
|
|
9
|
+
exports.MPEGDecoderWebWorker = MPEGDecoderWebWorker.default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import MPEGDecoder from "./src/MPEGDecoder.js";
|
|
2
|
+
import MPEGDecoderWebWorker from "./src/MPEGDecoderWebWorker.js";
|
|
3
|
+
import { assignNames } from "../@wasm-audio-decoders/common/src/utilities.js";
|
|
4
|
+
assignNames(MPEGDecoder, "MPEGDecoder");
|
|
5
|
+
assignNames(MPEGDecoderWebWorker, "MPEGDecoderWebWorker");
|
|
6
|
+
export {
|
|
7
|
+
MPEGDecoder,
|
|
8
|
+
MPEGDecoderWebWorker
|
|
9
|
+
};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const WASMAudioDecoderCommon = require("../../@wasm-audio-decoders/common/src/WASMAudioDecoderCommon.cjs");
|
|
4
|
+
const EmscriptenWasm = require("./EmscriptenWasm.cjs");
|
|
5
|
+
function MPEGDecoder(options = {}) {
|
|
6
|
+
this._init = () => {
|
|
7
|
+
return new this._WASMAudioDecoderCommon().instantiate(this._EmscriptenWASM, this._module).then((common) => {
|
|
8
|
+
this._common = common;
|
|
9
|
+
this._sampleRate = 0;
|
|
10
|
+
this._inputBytes = 0;
|
|
11
|
+
this._outputSamples = 0;
|
|
12
|
+
this._frameNumber = 0;
|
|
13
|
+
this._input = this._common.allocateTypedArray(
|
|
14
|
+
this._inputSize,
|
|
15
|
+
Uint8Array
|
|
16
|
+
);
|
|
17
|
+
this._output = this._common.allocateTypedArray(
|
|
18
|
+
this._outputSize,
|
|
19
|
+
Float32Array
|
|
20
|
+
);
|
|
21
|
+
const decoderPtr = this._common.allocateTypedArray(1, Uint32Array);
|
|
22
|
+
this._samplesDecodedPtr = this._common.allocateTypedArray(
|
|
23
|
+
1,
|
|
24
|
+
Uint32Array
|
|
25
|
+
);
|
|
26
|
+
this._sampleRatePtr = this._common.allocateTypedArray(1, Uint32Array);
|
|
27
|
+
this._errorStringPtr = this._common.allocateTypedArray(1, Uint32Array);
|
|
28
|
+
const error = this._common.wasm.mpeg_frame_decoder_create(
|
|
29
|
+
decoderPtr.ptr,
|
|
30
|
+
options.enableGapless === false ? 0 : 1
|
|
31
|
+
// default to enabled
|
|
32
|
+
);
|
|
33
|
+
if (error) {
|
|
34
|
+
throw Error(this._getErrorMessage(error));
|
|
35
|
+
}
|
|
36
|
+
this._decoder = decoderPtr.buf[0];
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(this, "ready", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: () => this._ready
|
|
42
|
+
});
|
|
43
|
+
this._getErrorMessage = (error) => error + " " + this._common.codeToString(this._errorStringPtr.buf[0]);
|
|
44
|
+
this.reset = () => {
|
|
45
|
+
this.free();
|
|
46
|
+
return this._init();
|
|
47
|
+
};
|
|
48
|
+
this.free = () => {
|
|
49
|
+
this._common.wasm.mpeg_frame_decoder_destroy(this._decoder);
|
|
50
|
+
this._common.wasm.free(this._decoder);
|
|
51
|
+
this._common.free();
|
|
52
|
+
};
|
|
53
|
+
this.decode = (data) => {
|
|
54
|
+
let output = [], errors = [], samples = 0;
|
|
55
|
+
if (!(data instanceof Uint8Array))
|
|
56
|
+
throw Error(
|
|
57
|
+
"Data to decode must be Uint8Array. Instead got " + typeof data
|
|
58
|
+
);
|
|
59
|
+
feed: for (let dataOffset = 0, dataChunkLength = 0; dataOffset < data.length; dataOffset += dataChunkLength) {
|
|
60
|
+
const dataChunk = data.subarray(dataOffset, this._input.len + dataOffset);
|
|
61
|
+
dataChunkLength = dataChunk.length;
|
|
62
|
+
this._inputBytes += dataChunkLength;
|
|
63
|
+
this._input.buf.set(dataChunk);
|
|
64
|
+
let error = this._common.wasm.mpeg_decoder_feed(
|
|
65
|
+
this._decoder,
|
|
66
|
+
this._input.ptr,
|
|
67
|
+
dataChunkLength
|
|
68
|
+
);
|
|
69
|
+
if (error === -10) {
|
|
70
|
+
continue feed;
|
|
71
|
+
}
|
|
72
|
+
read: while (true) {
|
|
73
|
+
this._samplesDecodedPtr.buf[0] = 0;
|
|
74
|
+
error = this._common.wasm.mpeg_decoder_read(
|
|
75
|
+
this._decoder,
|
|
76
|
+
this._output.ptr,
|
|
77
|
+
this._output.len,
|
|
78
|
+
this._samplesDecodedPtr.ptr,
|
|
79
|
+
this._sampleRatePtr.ptr,
|
|
80
|
+
this._errorStringPtr.ptr
|
|
81
|
+
);
|
|
82
|
+
const samplesDecoded = this._samplesDecodedPtr.buf[0];
|
|
83
|
+
this._outputSamples += samplesDecoded;
|
|
84
|
+
if (samplesDecoded) {
|
|
85
|
+
samples += samplesDecoded;
|
|
86
|
+
output.push([
|
|
87
|
+
this._output.buf.slice(0, samplesDecoded),
|
|
88
|
+
this._output.buf.slice(samplesDecoded, samplesDecoded * 2)
|
|
89
|
+
]);
|
|
90
|
+
}
|
|
91
|
+
if (error == -11) {
|
|
92
|
+
continue read;
|
|
93
|
+
} else if (error === -10) {
|
|
94
|
+
continue feed;
|
|
95
|
+
} else if (error) {
|
|
96
|
+
const message = this._getErrorMessage(error);
|
|
97
|
+
console.error("mpg123-decoder: " + message);
|
|
98
|
+
this._common.addError(
|
|
99
|
+
errors,
|
|
100
|
+
message,
|
|
101
|
+
0,
|
|
102
|
+
this._frameNumber,
|
|
103
|
+
this._inputBytes,
|
|
104
|
+
this._outputSamples
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return this._WASMAudioDecoderCommon.getDecodedAudioMultiChannel(
|
|
110
|
+
errors,
|
|
111
|
+
output,
|
|
112
|
+
2,
|
|
113
|
+
samples,
|
|
114
|
+
this._sampleRatePtr.buf[0]
|
|
115
|
+
);
|
|
116
|
+
};
|
|
117
|
+
this.decodeFrame = (mpegFrame) => {
|
|
118
|
+
const decoded = this.decode(mpegFrame);
|
|
119
|
+
this._frameNumber++;
|
|
120
|
+
return decoded;
|
|
121
|
+
};
|
|
122
|
+
this.decodeFrames = (mpegFrames) => {
|
|
123
|
+
let output = [], errors = [], samples = 0, i = 0;
|
|
124
|
+
while (i < mpegFrames.length) {
|
|
125
|
+
const decoded = this.decodeFrame(mpegFrames[i++]);
|
|
126
|
+
output.push(decoded.channelData);
|
|
127
|
+
errors = errors.concat(decoded.errors);
|
|
128
|
+
samples += decoded.samplesDecoded;
|
|
129
|
+
}
|
|
130
|
+
return this._WASMAudioDecoderCommon.getDecodedAudioMultiChannel(
|
|
131
|
+
errors,
|
|
132
|
+
output,
|
|
133
|
+
2,
|
|
134
|
+
samples,
|
|
135
|
+
this._sampleRatePtr.buf[0]
|
|
136
|
+
);
|
|
137
|
+
};
|
|
138
|
+
this._isWebWorker = MPEGDecoder.isWebWorker;
|
|
139
|
+
this._WASMAudioDecoderCommon = MPEGDecoder.WASMAudioDecoderCommon || WASMAudioDecoderCommon.default;
|
|
140
|
+
this._EmscriptenWASM = MPEGDecoder.EmscriptenWASM || EmscriptenWasm.default;
|
|
141
|
+
this._module = MPEGDecoder.module;
|
|
142
|
+
this._inputSize = 2 ** 16;
|
|
143
|
+
this._outputSize = 2889 * 16 * 2;
|
|
144
|
+
this._ready = this._init();
|
|
145
|
+
return this;
|
|
146
|
+
}
|
|
147
|
+
exports.default = MPEGDecoder;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import WASMAudioDecoderCommon from "../../@wasm-audio-decoders/common/src/WASMAudioDecoderCommon.js";
|
|
2
|
+
import EmscriptenWASM from "./EmscriptenWasm.js";
|
|
3
|
+
function MPEGDecoder(options = {}) {
|
|
4
|
+
this._init = () => {
|
|
5
|
+
return new this._WASMAudioDecoderCommon().instantiate(this._EmscriptenWASM, this._module).then((common) => {
|
|
6
|
+
this._common = common;
|
|
7
|
+
this._sampleRate = 0;
|
|
8
|
+
this._inputBytes = 0;
|
|
9
|
+
this._outputSamples = 0;
|
|
10
|
+
this._frameNumber = 0;
|
|
11
|
+
this._input = this._common.allocateTypedArray(
|
|
12
|
+
this._inputSize,
|
|
13
|
+
Uint8Array
|
|
14
|
+
);
|
|
15
|
+
this._output = this._common.allocateTypedArray(
|
|
16
|
+
this._outputSize,
|
|
17
|
+
Float32Array
|
|
18
|
+
);
|
|
19
|
+
const decoderPtr = this._common.allocateTypedArray(1, Uint32Array);
|
|
20
|
+
this._samplesDecodedPtr = this._common.allocateTypedArray(
|
|
21
|
+
1,
|
|
22
|
+
Uint32Array
|
|
23
|
+
);
|
|
24
|
+
this._sampleRatePtr = this._common.allocateTypedArray(1, Uint32Array);
|
|
25
|
+
this._errorStringPtr = this._common.allocateTypedArray(1, Uint32Array);
|
|
26
|
+
const error = this._common.wasm.mpeg_frame_decoder_create(
|
|
27
|
+
decoderPtr.ptr,
|
|
28
|
+
options.enableGapless === false ? 0 : 1
|
|
29
|
+
// default to enabled
|
|
30
|
+
);
|
|
31
|
+
if (error) {
|
|
32
|
+
throw Error(this._getErrorMessage(error));
|
|
33
|
+
}
|
|
34
|
+
this._decoder = decoderPtr.buf[0];
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(this, "ready", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: () => this._ready
|
|
40
|
+
});
|
|
41
|
+
this._getErrorMessage = (error) => error + " " + this._common.codeToString(this._errorStringPtr.buf[0]);
|
|
42
|
+
this.reset = () => {
|
|
43
|
+
this.free();
|
|
44
|
+
return this._init();
|
|
45
|
+
};
|
|
46
|
+
this.free = () => {
|
|
47
|
+
this._common.wasm.mpeg_frame_decoder_destroy(this._decoder);
|
|
48
|
+
this._common.wasm.free(this._decoder);
|
|
49
|
+
this._common.free();
|
|
50
|
+
};
|
|
51
|
+
this.decode = (data) => {
|
|
52
|
+
let output = [], errors = [], samples = 0;
|
|
53
|
+
if (!(data instanceof Uint8Array))
|
|
54
|
+
throw Error(
|
|
55
|
+
"Data to decode must be Uint8Array. Instead got " + typeof data
|
|
56
|
+
);
|
|
57
|
+
feed: for (let dataOffset = 0, dataChunkLength = 0; dataOffset < data.length; dataOffset += dataChunkLength) {
|
|
58
|
+
const dataChunk = data.subarray(dataOffset, this._input.len + dataOffset);
|
|
59
|
+
dataChunkLength = dataChunk.length;
|
|
60
|
+
this._inputBytes += dataChunkLength;
|
|
61
|
+
this._input.buf.set(dataChunk);
|
|
62
|
+
let error = this._common.wasm.mpeg_decoder_feed(
|
|
63
|
+
this._decoder,
|
|
64
|
+
this._input.ptr,
|
|
65
|
+
dataChunkLength
|
|
66
|
+
);
|
|
67
|
+
if (error === -10) {
|
|
68
|
+
continue feed;
|
|
69
|
+
}
|
|
70
|
+
read: while (true) {
|
|
71
|
+
this._samplesDecodedPtr.buf[0] = 0;
|
|
72
|
+
error = this._common.wasm.mpeg_decoder_read(
|
|
73
|
+
this._decoder,
|
|
74
|
+
this._output.ptr,
|
|
75
|
+
this._output.len,
|
|
76
|
+
this._samplesDecodedPtr.ptr,
|
|
77
|
+
this._sampleRatePtr.ptr,
|
|
78
|
+
this._errorStringPtr.ptr
|
|
79
|
+
);
|
|
80
|
+
const samplesDecoded = this._samplesDecodedPtr.buf[0];
|
|
81
|
+
this._outputSamples += samplesDecoded;
|
|
82
|
+
if (samplesDecoded) {
|
|
83
|
+
samples += samplesDecoded;
|
|
84
|
+
output.push([
|
|
85
|
+
this._output.buf.slice(0, samplesDecoded),
|
|
86
|
+
this._output.buf.slice(samplesDecoded, samplesDecoded * 2)
|
|
87
|
+
]);
|
|
88
|
+
}
|
|
89
|
+
if (error == -11) {
|
|
90
|
+
continue read;
|
|
91
|
+
} else if (error === -10) {
|
|
92
|
+
continue feed;
|
|
93
|
+
} else if (error) {
|
|
94
|
+
const message = this._getErrorMessage(error);
|
|
95
|
+
console.error("mpg123-decoder: " + message);
|
|
96
|
+
this._common.addError(
|
|
97
|
+
errors,
|
|
98
|
+
message,
|
|
99
|
+
0,
|
|
100
|
+
this._frameNumber,
|
|
101
|
+
this._inputBytes,
|
|
102
|
+
this._outputSamples
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return this._WASMAudioDecoderCommon.getDecodedAudioMultiChannel(
|
|
108
|
+
errors,
|
|
109
|
+
output,
|
|
110
|
+
2,
|
|
111
|
+
samples,
|
|
112
|
+
this._sampleRatePtr.buf[0]
|
|
113
|
+
);
|
|
114
|
+
};
|
|
115
|
+
this.decodeFrame = (mpegFrame) => {
|
|
116
|
+
const decoded = this.decode(mpegFrame);
|
|
117
|
+
this._frameNumber++;
|
|
118
|
+
return decoded;
|
|
119
|
+
};
|
|
120
|
+
this.decodeFrames = (mpegFrames) => {
|
|
121
|
+
let output = [], errors = [], samples = 0, i = 0;
|
|
122
|
+
while (i < mpegFrames.length) {
|
|
123
|
+
const decoded = this.decodeFrame(mpegFrames[i++]);
|
|
124
|
+
output.push(decoded.channelData);
|
|
125
|
+
errors = errors.concat(decoded.errors);
|
|
126
|
+
samples += decoded.samplesDecoded;
|
|
127
|
+
}
|
|
128
|
+
return this._WASMAudioDecoderCommon.getDecodedAudioMultiChannel(
|
|
129
|
+
errors,
|
|
130
|
+
output,
|
|
131
|
+
2,
|
|
132
|
+
samples,
|
|
133
|
+
this._sampleRatePtr.buf[0]
|
|
134
|
+
);
|
|
135
|
+
};
|
|
136
|
+
this._isWebWorker = MPEGDecoder.isWebWorker;
|
|
137
|
+
this._WASMAudioDecoderCommon = MPEGDecoder.WASMAudioDecoderCommon || WASMAudioDecoderCommon;
|
|
138
|
+
this._EmscriptenWASM = MPEGDecoder.EmscriptenWASM || EmscriptenWASM;
|
|
139
|
+
this._module = MPEGDecoder.module;
|
|
140
|
+
this._inputSize = 2 ** 16;
|
|
141
|
+
this._outputSize = 2889 * 16 * 2;
|
|
142
|
+
this._ready = this._init();
|
|
143
|
+
return this;
|
|
144
|
+
}
|
|
145
|
+
export {
|
|
146
|
+
MPEGDecoder as default
|
|
147
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const WASMAudioDecoderWorker = require("../../@wasm-audio-decoders/common/src/WASMAudioDecoderWorker.cjs");
|
|
4
|
+
const EmscriptenWasm = require("./EmscriptenWasm.cjs");
|
|
5
|
+
const MPEGDecoder = require("./MPEGDecoder.cjs");
|
|
6
|
+
class MPEGDecoderWebWorker extends WASMAudioDecoderWorker.default {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options, "mpg123-decoder", MPEGDecoder.default, EmscriptenWasm.default);
|
|
9
|
+
}
|
|
10
|
+
async decode(data) {
|
|
11
|
+
return this.postToDecoder("decode", data);
|
|
12
|
+
}
|
|
13
|
+
async decodeFrame(data) {
|
|
14
|
+
return this.postToDecoder("decodeFrame", data);
|
|
15
|
+
}
|
|
16
|
+
async decodeFrames(data) {
|
|
17
|
+
return this.postToDecoder("decodeFrames", data);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.default = MPEGDecoderWebWorker;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import WASMAudioDecoderWorker from "../../@wasm-audio-decoders/common/src/WASMAudioDecoderWorker.js";
|
|
2
|
+
import EmscriptenWASM from "./EmscriptenWasm.js";
|
|
3
|
+
import MPEGDecoder from "./MPEGDecoder.js";
|
|
4
|
+
class MPEGDecoderWebWorker extends WASMAudioDecoderWorker {
|
|
5
|
+
constructor(options) {
|
|
6
|
+
super(options, "mpg123-decoder", MPEGDecoder, EmscriptenWASM);
|
|
7
|
+
}
|
|
8
|
+
async decode(data) {
|
|
9
|
+
return this.postToDecoder("decode", data);
|
|
10
|
+
}
|
|
11
|
+
async decodeFrame(data) {
|
|
12
|
+
return this.postToDecoder("decodeFrame", data);
|
|
13
|
+
}
|
|
14
|
+
async decodeFrames(data) {
|
|
15
|
+
return this.postToDecoder("decodeFrames", data);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
MPEGDecoderWebWorker as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const t = (t2, n = 4294967295, e2 = 79764919) => {
|
|
4
|
+
const r = new Int32Array(256);
|
|
5
|
+
let o, s, i, c = n;
|
|
6
|
+
for (o = 0; o < 256; o++) {
|
|
7
|
+
for (i = o << 24, s = 8; s > 0; --s) i = 2147483648 & i ? i << 1 ^ e2 : i << 1;
|
|
8
|
+
r[o] = i;
|
|
9
|
+
}
|
|
10
|
+
for (o = 0; o < t2.length; o++) c = c << 8 ^ r[255 & (c >> 24 ^ t2[o])];
|
|
11
|
+
return c;
|
|
12
|
+
}, e = (n, e2 = t) => {
|
|
13
|
+
const r = (t2) => new Uint8Array(t2.length / 2).map(((n2, e3) => parseInt(t2.substring(2 * e3, 2 * (e3 + 1)), 16))), o = (t2) => r(t2)[0], s = /* @__PURE__ */ new Map();
|
|
14
|
+
[, 8364, , 8218, 402, 8222, 8230, 8224, 8225, 710, 8240, 352, 8249, 338, , 381, , , 8216, 8217, 8220, 8221, 8226, 8211, 8212, 732, 8482, 353, 8250, 339, , 382, 376].forEach(((t2, n2) => s.set(t2, n2)));
|
|
15
|
+
const i = new Uint8Array(n.length);
|
|
16
|
+
let c, a, l, f = false, g = 0, h = 42, p = n.length > 13 && "dynEncode" === n.substring(0, 9), u = 0;
|
|
17
|
+
p && (u = 11, a = o(n.substring(9, u)), a <= 1 && (u += 2, h = o(n.substring(11, u))), 1 === a && (u += 8, l = ((t2) => new DataView(r(t2).buffer).getInt32(0, true))(n.substring(13, u))));
|
|
18
|
+
const d = 256 - h;
|
|
19
|
+
for (let t2 = u; t2 < n.length; t2++) if (c = n.charCodeAt(t2), 61 !== c || f) {
|
|
20
|
+
if (92 === c && t2 < n.length - 5 && p) {
|
|
21
|
+
const e3 = n.charCodeAt(t2 + 1);
|
|
22
|
+
117 !== e3 && 85 !== e3 || (c = parseInt(n.substring(t2 + 2, t2 + 6), 16), t2 += 5);
|
|
23
|
+
}
|
|
24
|
+
if (c > 255) {
|
|
25
|
+
const t3 = s.get(c);
|
|
26
|
+
t3 && (c = t3 + 127);
|
|
27
|
+
}
|
|
28
|
+
f && (f = false, c -= 64), i[g++] = c < h && c > 0 ? c + d : c - h;
|
|
29
|
+
} else f = true;
|
|
30
|
+
const m = i.subarray(0, g);
|
|
31
|
+
if (p && 1 === a) {
|
|
32
|
+
const t2 = e2(m);
|
|
33
|
+
if (t2 !== l) {
|
|
34
|
+
const n2 = "Decode failed crc32 validation";
|
|
35
|
+
throw console.error("`simple-yenc`\n", n2 + "\n", "Expected: " + l + "; Got: " + t2 + "\n", "Visit https://github.com/eshaz/simple-yenc for more information"), Error(n2);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return m;
|
|
39
|
+
};
|
|
40
|
+
exports.crc32 = t;
|
|
41
|
+
exports.decode = e;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const t = (t2, n = 4294967295, e2 = 79764919) => {
|
|
2
|
+
const r = new Int32Array(256);
|
|
3
|
+
let o, s, i, c = n;
|
|
4
|
+
for (o = 0; o < 256; o++) {
|
|
5
|
+
for (i = o << 24, s = 8; s > 0; --s) i = 2147483648 & i ? i << 1 ^ e2 : i << 1;
|
|
6
|
+
r[o] = i;
|
|
7
|
+
}
|
|
8
|
+
for (o = 0; o < t2.length; o++) c = c << 8 ^ r[255 & (c >> 24 ^ t2[o])];
|
|
9
|
+
return c;
|
|
10
|
+
}, e = (n, e2 = t) => {
|
|
11
|
+
const r = (t2) => new Uint8Array(t2.length / 2).map(((n2, e3) => parseInt(t2.substring(2 * e3, 2 * (e3 + 1)), 16))), o = (t2) => r(t2)[0], s = /* @__PURE__ */ new Map();
|
|
12
|
+
[, 8364, , 8218, 402, 8222, 8230, 8224, 8225, 710, 8240, 352, 8249, 338, , 381, , , 8216, 8217, 8220, 8221, 8226, 8211, 8212, 732, 8482, 353, 8250, 339, , 382, 376].forEach(((t2, n2) => s.set(t2, n2)));
|
|
13
|
+
const i = new Uint8Array(n.length);
|
|
14
|
+
let c, a, l, f = false, g = 0, h = 42, p = n.length > 13 && "dynEncode" === n.substring(0, 9), u = 0;
|
|
15
|
+
p && (u = 11, a = o(n.substring(9, u)), a <= 1 && (u += 2, h = o(n.substring(11, u))), 1 === a && (u += 8, l = ((t2) => new DataView(r(t2).buffer).getInt32(0, true))(n.substring(13, u))));
|
|
16
|
+
const d = 256 - h;
|
|
17
|
+
for (let t2 = u; t2 < n.length; t2++) if (c = n.charCodeAt(t2), 61 !== c || f) {
|
|
18
|
+
if (92 === c && t2 < n.length - 5 && p) {
|
|
19
|
+
const e3 = n.charCodeAt(t2 + 1);
|
|
20
|
+
117 !== e3 && 85 !== e3 || (c = parseInt(n.substring(t2 + 2, t2 + 6), 16), t2 += 5);
|
|
21
|
+
}
|
|
22
|
+
if (c > 255) {
|
|
23
|
+
const t3 = s.get(c);
|
|
24
|
+
t3 && (c = t3 + 127);
|
|
25
|
+
}
|
|
26
|
+
f && (f = false, c -= 64), i[g++] = c < h && c > 0 ? c + d : c - h;
|
|
27
|
+
} else f = true;
|
|
28
|
+
const m = i.subarray(0, g);
|
|
29
|
+
if (p && 1 === a) {
|
|
30
|
+
const t2 = e2(m);
|
|
31
|
+
if (t2 !== l) {
|
|
32
|
+
const n2 = "Decode failed crc32 validation";
|
|
33
|
+
throw console.error("`simple-yenc`\n", n2 + "\n", "Expected: " + l + "; Got: " + t2 + "\n", "Visit https://github.com/eshaz/simple-yenc for more information"), Error(n2);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return m;
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
t as crc32,
|
|
40
|
+
e as decode
|
|
41
|
+
};
|
|
@@ -30,7 +30,7 @@ const LiveStreamingRecorderRoot = react.forwardRef(
|
|
|
30
30
|
theme: themeClassName,
|
|
31
31
|
visibility: hidden ? "hidden" : "auto",
|
|
32
32
|
autoHide: "leave",
|
|
33
|
-
//
|
|
33
|
+
// 마우스가 영역을 벗어나면 숨김 (가장 대중적인 UX)
|
|
34
34
|
autoHideDelay: 400,
|
|
35
35
|
dragScroll: true,
|
|
36
36
|
clickScroll: true
|
|
@@ -28,7 +28,7 @@ const LiveStreamingRecorderRoot = forwardRef(
|
|
|
28
28
|
theme: themeClassName,
|
|
29
29
|
visibility: hidden ? "hidden" : "auto",
|
|
30
30
|
autoHide: "leave",
|
|
31
|
-
//
|
|
31
|
+
// 마우스가 영역을 벗어나면 숨김 (가장 대중적인 UX)
|
|
32
32
|
autoHideDelay: 400,
|
|
33
33
|
dragScroll: true,
|
|
34
34
|
clickScroll: true
|
package/dist/waveform/index.cjs
CHANGED
|
@@ -9,8 +9,20 @@ const getInitialSampleCount = () => {
|
|
|
9
9
|
if (typeof window === "undefined") return 500;
|
|
10
10
|
return Math.max(500, Math.ceil(window.innerWidth));
|
|
11
11
|
};
|
|
12
|
-
const AudioWaveform = react.forwardRef(function AudioWaveform2({
|
|
13
|
-
|
|
12
|
+
const AudioWaveform = react.forwardRef(function AudioWaveform2({
|
|
13
|
+
blob,
|
|
14
|
+
peaks: precomputedPeaks,
|
|
15
|
+
appearance,
|
|
16
|
+
suspense = false,
|
|
17
|
+
currentTime,
|
|
18
|
+
duration,
|
|
19
|
+
onSeek,
|
|
20
|
+
onSeekStart,
|
|
21
|
+
onSeekDrag,
|
|
22
|
+
onSeekEnd,
|
|
23
|
+
...props
|
|
24
|
+
}, ref) {
|
|
25
|
+
const [decodedPeaks, setDecodedPeaks] = react.useState(null);
|
|
14
26
|
const [error, setError] = react.useState(null);
|
|
15
27
|
const blobRef = react.useRef(null);
|
|
16
28
|
const rendererRef = react.useRef(null);
|
|
@@ -22,13 +34,15 @@ const AudioWaveform = react.forwardRef(function AudioWaveform2({ blob, appearanc
|
|
|
22
34
|
ref.current = { canvas: rendererRef.current?.canvas || null };
|
|
23
35
|
}
|
|
24
36
|
}, [ref]);
|
|
25
|
-
const
|
|
37
|
+
const shouldDecode = !precomputedPeaks && blob;
|
|
38
|
+
const suspensePeaks = shouldDecode && suspense ? utilSuspense.unwrapPromise(utilAudioDecoder.getAudioData(blob, sampleCount)) : null;
|
|
26
39
|
react.useEffect(() => {
|
|
27
|
-
if (suspense)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
40
|
+
if (!shouldDecode || suspense) {
|
|
41
|
+
if (!shouldDecode) {
|
|
42
|
+
setDecodedPeaks(null);
|
|
43
|
+
setError(null);
|
|
44
|
+
blobRef.current = null;
|
|
45
|
+
}
|
|
32
46
|
return;
|
|
33
47
|
}
|
|
34
48
|
if (blobRef.current === blob) return;
|
|
@@ -37,7 +51,7 @@ const AudioWaveform = react.forwardRef(function AudioWaveform2({ blob, appearanc
|
|
|
37
51
|
setError(null);
|
|
38
52
|
utilAudioDecoder.decodeAudioBlob(blob, sampleCount).then((data) => {
|
|
39
53
|
if (!cancelled) {
|
|
40
|
-
|
|
54
|
+
setDecodedPeaks(data);
|
|
41
55
|
}
|
|
42
56
|
}).catch((err) => {
|
|
43
57
|
if (!cancelled) {
|
|
@@ -47,11 +61,11 @@ const AudioWaveform = react.forwardRef(function AudioWaveform2({ blob, appearanc
|
|
|
47
61
|
return () => {
|
|
48
62
|
cancelled = true;
|
|
49
63
|
};
|
|
50
|
-
}, [blob, sampleCount, suspense]);
|
|
64
|
+
}, [blob, sampleCount, suspense, shouldDecode]);
|
|
51
65
|
if (!suspense && error) {
|
|
52
66
|
throw error;
|
|
53
67
|
}
|
|
54
|
-
const finalPeaks = suspense ? suspensePeaks :
|
|
68
|
+
const finalPeaks = precomputedPeaks ?? (suspense ? suspensePeaks : decodedPeaks);
|
|
55
69
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56
70
|
waveformRenderer.WaveformRenderer,
|
|
57
71
|
{
|
|
@@ -61,6 +75,9 @@ const AudioWaveform = react.forwardRef(function AudioWaveform2({ blob, appearanc
|
|
|
61
75
|
currentTime,
|
|
62
76
|
duration,
|
|
63
77
|
onSeek,
|
|
78
|
+
onSeekStart,
|
|
79
|
+
onSeekDrag,
|
|
80
|
+
onSeekEnd,
|
|
64
81
|
...props
|
|
65
82
|
}
|
|
66
83
|
);
|
package/dist/waveform/index.js
CHANGED
|
@@ -7,8 +7,20 @@ const getInitialSampleCount = () => {
|
|
|
7
7
|
if (typeof window === "undefined") return 500;
|
|
8
8
|
return Math.max(500, Math.ceil(window.innerWidth));
|
|
9
9
|
};
|
|
10
|
-
const AudioWaveform = forwardRef(function AudioWaveform2({
|
|
11
|
-
|
|
10
|
+
const AudioWaveform = forwardRef(function AudioWaveform2({
|
|
11
|
+
blob,
|
|
12
|
+
peaks: precomputedPeaks,
|
|
13
|
+
appearance,
|
|
14
|
+
suspense = false,
|
|
15
|
+
currentTime,
|
|
16
|
+
duration,
|
|
17
|
+
onSeek,
|
|
18
|
+
onSeekStart,
|
|
19
|
+
onSeekDrag,
|
|
20
|
+
onSeekEnd,
|
|
21
|
+
...props
|
|
22
|
+
}, ref) {
|
|
23
|
+
const [decodedPeaks, setDecodedPeaks] = useState(null);
|
|
12
24
|
const [error, setError] = useState(null);
|
|
13
25
|
const blobRef = useRef(null);
|
|
14
26
|
const rendererRef = useRef(null);
|
|
@@ -20,13 +32,15 @@ const AudioWaveform = forwardRef(function AudioWaveform2({ blob, appearance, sus
|
|
|
20
32
|
ref.current = { canvas: rendererRef.current?.canvas || null };
|
|
21
33
|
}
|
|
22
34
|
}, [ref]);
|
|
23
|
-
const
|
|
35
|
+
const shouldDecode = !precomputedPeaks && blob;
|
|
36
|
+
const suspensePeaks = shouldDecode && suspense ? unwrapPromise(getAudioData(blob, sampleCount)) : null;
|
|
24
37
|
useEffect(() => {
|
|
25
|
-
if (suspense)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
38
|
+
if (!shouldDecode || suspense) {
|
|
39
|
+
if (!shouldDecode) {
|
|
40
|
+
setDecodedPeaks(null);
|
|
41
|
+
setError(null);
|
|
42
|
+
blobRef.current = null;
|
|
43
|
+
}
|
|
30
44
|
return;
|
|
31
45
|
}
|
|
32
46
|
if (blobRef.current === blob) return;
|
|
@@ -35,7 +49,7 @@ const AudioWaveform = forwardRef(function AudioWaveform2({ blob, appearance, sus
|
|
|
35
49
|
setError(null);
|
|
36
50
|
decodeAudioBlob(blob, sampleCount).then((data) => {
|
|
37
51
|
if (!cancelled) {
|
|
38
|
-
|
|
52
|
+
setDecodedPeaks(data);
|
|
39
53
|
}
|
|
40
54
|
}).catch((err) => {
|
|
41
55
|
if (!cancelled) {
|
|
@@ -45,11 +59,11 @@ const AudioWaveform = forwardRef(function AudioWaveform2({ blob, appearance, sus
|
|
|
45
59
|
return () => {
|
|
46
60
|
cancelled = true;
|
|
47
61
|
};
|
|
48
|
-
}, [blob, sampleCount, suspense]);
|
|
62
|
+
}, [blob, sampleCount, suspense, shouldDecode]);
|
|
49
63
|
if (!suspense && error) {
|
|
50
64
|
throw error;
|
|
51
65
|
}
|
|
52
|
-
const finalPeaks = suspense ? suspensePeaks :
|
|
66
|
+
const finalPeaks = precomputedPeaks ?? (suspense ? suspensePeaks : decodedPeaks);
|
|
53
67
|
return /* @__PURE__ */ jsx(
|
|
54
68
|
WaveformRenderer,
|
|
55
69
|
{
|
|
@@ -59,6 +73,9 @@ const AudioWaveform = forwardRef(function AudioWaveform2({ blob, appearance, sus
|
|
|
59
73
|
currentTime,
|
|
60
74
|
duration,
|
|
61
75
|
onSeek,
|
|
76
|
+
onSeekStart,
|
|
77
|
+
onSeekDrag,
|
|
78
|
+
onSeekEnd,
|
|
62
79
|
...props
|
|
63
80
|
}
|
|
64
81
|
);
|