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.6.9 to 1.6.10

8

package.json
{
"name": "ogg-opus-decoder",
"version": "1.6.9",
"version": "1.6.10",
"description": "Web Assembly streaming Ogg Opus decoder",

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

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

@@ -57,6 +57,6 @@ },

"dependencies": {
"@wasm-audio-decoders/common": "9.0.3",
"@wasm-audio-decoders/common": "9.0.4",
"codec-parser": "2.4.3",
"opus-decoder": "0.7.4"
"opus-decoder": "0.7.5"
}
}

@@ -1,32 +0,30 @@

import { DecodeError } from "@wasm-audio-decoders/common/types";
import { DecodeError } from "@wasm-audio-decoders/common";
declare module "ogg-opus-decoder" {
export interface OpusDecodedAudio {
channelData: Float32Array[];
samplesDecoded: number;
sampleRate: 48000;
errors: DecodeError[];
}
export interface OggOpusDecodedAudio {
channelData: Float32Array[];
samplesDecoded: number;
sampleRate: 48000;
errors: DecodeError[];
}
export class OggOpusDecoder {
public constructor(options?: { forceStereo?: boolean });
ready: Promise<void>;
reset: () => Promise<void>;
free: () => void;
decode: (data: Uint8Array) => OpusDecodedAudio;
decodeFile: (data: Uint8Array) => Promise<OpusDecodedAudio>;
flush: () => Promise<OpusDecodedAudio>;
}
export class OggOpusDecoder {
public constructor(options?: { forceStereo?: boolean });
ready: Promise<void>;
reset: () => Promise<void>;
free: () => void;
decode: (data: Uint8Array) => OggOpusDecodedAudio;
decodeFile: (data: Uint8Array) => Promise<OggOpusDecodedAudio>;
flush: () => Promise<OggOpusDecodedAudio>;
}
export class OggOpusDecoderWebWorker {
public constructor(options?: { forceStereo?: boolean });
ready: Promise<void>;
reset: () => Promise<void>;
free: () => Promise<void>;
decode: (data: Uint8Array) => Promise<OpusDecodedAudio>;
decodeFile: (data: Uint8Array) => Promise<OpusDecodedAudio>;
flush: () => Promise<OpusDecodedAudio>;
}
export class OggOpusDecoderWebWorker {
public constructor(options?: { forceStereo?: boolean });
ready: Promise<void>;
reset: () => Promise<void>;
free: () => Promise<void>;
decode: (data: Uint8Array) => Promise<OggOpusDecodedAudio>;
decodeFile: (data: Uint8Array) => Promise<OggOpusDecodedAudio>;
flush: () => Promise<OggOpusDecodedAudio>;
}
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