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

opus-decoder

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opus-decoder - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

2

package.json
{
"name": "opus-decoder",
"version": "0.5.1",
"version": "0.5.2",
"description": "Web Assembly streaming Opus decoder",

@@ -5,0 +5,0 @@ "type": "module",

@@ -92,12 +92,20 @@ import { WASMAudioDecoderCommon } from "@wasm-audio-decoders/common";

}
return samplesDecoded;
return {
outputBuffer: this._common.getOutputChannels(
this._output.buf,
this._outputChannels,
samplesDecoded
),
samplesDecoded: samplesDecoded,
};
};
this.decodeFrame = (opusFrame) => {
const samplesDecoded = this._decode(opusFrame);
const decoded = this._decode(opusFrame);
return this._WASMAudioDecoderCommon.getDecodedAudioMultiChannel(
this._output.buf,
[decoded.outputBuffer],
this._outputChannels,
samplesDecoded,
decoded.samplesDecoded,
48000

@@ -113,15 +121,8 @@ );

while (i < opusFrames.length) {
const samplesDecoded = this._decode(opusFrames[i++]);
outputBuffers.push(
this._common.getOutputChannels(
this._output.buf,
this._outputChannels,
samplesDecoded
)
);
outputSamples += samplesDecoded;
const decoded = this._decode(opusFrames[i++]);
outputBuffers.push(decoded.outputBuffer);
outputSamples += decoded.samplesDecoded;
}
const data = this._WASMAudioDecoderCommon.getDecodedAudioMultiChannel(
return this._WASMAudioDecoderCommon.getDecodedAudioMultiChannel(
outputBuffers,

@@ -132,4 +133,2 @@ this._outputChannels,

);
return data;
};

@@ -136,0 +135,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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