-
Notifications
You must be signed in to change notification settings - Fork 112
/
index.d.ts
42 lines (37 loc) · 1.02 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
declare module 'lame' {
import { WriteStream } from 'fs';
import { DuplexOptions } from 'stream';
export interface DecoderOptions extends DuplexOptions {
readonly decoder: string;
}
export interface EncoderOptions extends DuplexOptions {
readonly float;
readonly signed?: number;
readonly bitDepth?: number;
readonly channels?: number;
readonly sampleRate?: number;
}
/**
* The `Decoder` accepts an MP3 file and outputs raw PCM data.
*
* @param opts Configurations.
* @returns A writable stream.
*/
export function Decoder(opts?: DecoderOptions): WriteStream;
/**
* The `Encoder` accepts raw PCM data and outputs an MP3 file.
*
* @param opts Configurations.
* @returns A writable stream.
*/
export function Encoder(opts?: EncoderOptions): WriteStream;
/*
* Channel Modes
*/
export enum ChannelModes {
STEREO,
JOINTSTEREO,
DUALCHANNEL,
MONO
}
}