ogg-opus-decoder
Advanced tools
Comparing version 1.3.8 to 1.3.9
{ | ||
"name": "ogg-opus-decoder", | ||
"version": "1.3.8", | ||
"version": "1.3.9", | ||
"description": "Web Assembly streaming Ogg Opus decoder", | ||
@@ -52,4 +52,4 @@ "type": "module", | ||
"dependencies": { | ||
"@wasm-audio-decoders/common": "4.0.1" | ||
"@wasm-audio-decoders/common": "5.0.0" | ||
} | ||
} |
# `ogg-opus-decoder` | ||
`ogg-opus-decoder` is a Web Assembly Ogg Opus audio decoder. | ||
* 107.7 KiB minified bundle size | ||
* 107.2 KiB minified bundle size | ||
* Browser and NodeJS support | ||
@@ -154,4 +154,4 @@ * Built in Web Worker support | ||
* `decoder.decode(oggOpusData)` *Async | ||
* `opusFrame` Uint8Array containing Ogg Opus data. | ||
* `decoder.decode(oggOpusData)` *async* | ||
* `oggOpusData` Uint8Array containing Ogg Opus data. | ||
* Returns a promise that resolves with the decoded audio. | ||
@@ -158,0 +158,0 @@ * `decoder.reset()` *async* |
@@ -32,11 +32,13 @@ import { WASMAudioDecoderCommon } from "@wasm-audio-decoders/common"; | ||
this._init = () => { | ||
return new this._WASMAudioDecoderCommon(this).then((common) => { | ||
this._common = common; | ||
return new this._WASMAudioDecoderCommon(this) | ||
.instantiate() | ||
.then((common) => { | ||
this._common = common; | ||
this._channelsDecoded = this._common.allocateTypedArray(1, Uint32Array); | ||
this._channelsDecoded = this._common.allocateTypedArray(1, Uint32Array); | ||
this._decoder = this._common.wasm._ogg_opus_decoder_create( | ||
this._forceStereo | ||
); | ||
}); | ||
this._decoder = this._common.wasm._ogg_opus_decoder_create( | ||
this._forceStereo | ||
); | ||
}); | ||
}; | ||
@@ -131,2 +133,3 @@ | ||
this._EmscriptenWASM = OggOpusDecoder.EmscriptenWASM || EmscriptenWASM; | ||
this._module = OggOpusDecoder.module; | ||
@@ -133,0 +136,0 @@ this._forceStereo = options.forceStereo || false; |
@@ -7,3 +7,3 @@ import { WASMAudioDecoderWorker } from "@wasm-audio-decoders/common"; | ||
constructor(options) { | ||
super(options, OggOpusDecoder, EmscriptenWASM); | ||
super(options, "ogg-opus-decoder", OggOpusDecoder, EmscriptenWASM); | ||
} | ||
@@ -10,0 +10,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
High entropy strings
Supply chain riskContains high entropy strings. This could be a sign of encrypted data, leaked secrets or obfuscated code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1307
0
242921
+ Added@wasm-audio-decoders/common@5.0.0(transitive)
- Removed@wasm-audio-decoders/common@4.0.1(transitive)