Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ogg-opus-decoder

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ogg-opus-decoder - npm Package Compare versions

Comparing version 1.3.8 to 1.3.9

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc