Skip to content

Commit

Permalink
Add definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
dy committed Nov 15, 2023
1 parent 0d64da4 commit 062fc51
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions audio-decode.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// audio-decode.d.ts

export default function audioDecode(buf: ArrayBuffer | Uint8Array): Promise<AudioBuffer>;

export interface Decoders {
oga: (buf: Uint8Array) => Promise<AudioBuffer>;
mp3: (buf: Uint8Array) => Promise<AudioBuffer>;
flac: (buf: Uint8Array) => Promise<AudioBuffer>;
opus: (buf: Uint8Array) => Promise<AudioBuffer>;
wav: (buf: Uint8Array) => Promise<AudioBuffer>;
qoa: (buf: Uint8Array) => Promise<AudioBuffer>;
}

export const decoders: Decoders;

0 comments on commit 062fc51

Please sign in to comment.