mpg123-decoder
Advanced tools
Comparing version 0.4.11 to 0.4.12
{ | ||
"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 }; |
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
182707
1133
+ Added@wasm-audio-decoders/common@9.0.4(transitive)
- Removed@wasm-audio-decoders/common@9.0.3(transitive)