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

mpg123-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

mpg123-decoder - npm Package Compare versions

Comparing version 0.4.11 to 0.4.12

6

package.json
{
"name": "mpg123-decoder",
"version": "0.4.11",
"version": "0.4.12",
"description": "Web Assembly streaming MPEG Layer I/II/III decoder",

@@ -8,3 +8,3 @@ "type": "module",

"exports": {
"types":"./types.d.ts",
"types": "./types.d.ts",
"default": "./index.js"

@@ -57,4 +57,4 @@ },

"dependencies": {
"@wasm-audio-decoders/common": "9.0.3"
"@wasm-audio-decoders/common": "9.0.4"
}
}

@@ -1,30 +0,28 @@

import { DecodeError } from "@wasm-audio-decoders/common/types";
import { DecodeError } from "@wasm-audio-decoders/common";
declare module "mpg123-decoder" {
export interface MPEGDecodedAudio {
channelData: Float32Array[];
samplesDecoded: number;
sampleRate: number;
errors: DecodeError[];
}
export interface MPEGDecodedAudio {
channelData: Float32Array[];
samplesDecoded: number;
sampleRate: number;
errors: DecodeError[];
}
export class MPEGDecoder {
ready: Promise<void>;
reset: () => Promise<void>;
free: () => void;
decode: (mpegData: Uint8Array) => MPEGDecodedAudio;
decodeFrame: (mpegFrame: Uint8Array) => MPEGDecodedAudio;
decodeFrames: (mpegFrames: Uint8Array[]) => MPEGDecodedAudio;
}
export class MPEGDecoder {
ready: Promise<void>;
reset: () => Promise<void>;
free: () => void;
decode: (mpegData: Uint8Array) => MPEGDecodedAudio;
decodeFrame: (mpegFrame: Uint8Array) => MPEGDecodedAudio;
decodeFrames: (mpegFrames: Uint8Array[]) => MPEGDecodedAudio;
}
export class MPEGDecoderWebWorker {
ready: Promise<void>;
reset: () => Promise<void>;
free: () => Promise<void>;
decode: (mpegData: Uint8Array) => Promise<MPEGDecodedAudio>;
decodeFrame: (mpegFrame: Uint8Array) => Promise<MPEGDecodedAudio>;
decodeFrames: (mpegFrames: Uint8Array[]) => Promise<MPEGDecodedAudio>;
}
export class MPEGDecoderWebWorker {
ready: Promise<void>;
reset: () => Promise<void>;
free: () => Promise<void>;
decode: (mpegData: Uint8Array) => Promise<MPEGDecodedAudio>;
decodeFrame: (mpegFrame: Uint8Array) => Promise<MPEGDecodedAudio>;
decodeFrames: (mpegFrames: Uint8Array[]) => Promise<MPEGDecodedAudio>;
}
export { DecodeError }
}
export { DecodeError };
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