-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathindex.d.ts
98 lines (86 loc) · 2.24 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/// <reference types="node" />
declare namespace Sox {
export type Combine =
"concatenate" |
"sequence" |
"mix" |
"mix-power" |
"merge" |
"multiply";
export type Encoding =
"signed-integer" |
"unsigned-integer" |
"floating-point" |
"mu-law" |
"a-law" |
"ima-adpcm" |
"ms-adpcm" |
"gsm-full-rate";
export type Endian =
"little" |
"big" |
"swap";
export type Effect = string | string[];
export interface StreamOptions {
"type"?: string;
"bits"?: number;
"encoding"?: Encoding;
"reverse-nibbles"?: boolean;
"reverse-bits"?: boolean;
"endian"?: Endian;
"channels"?: number;
"no-glob"?: boolean;
"rate"?: number;
"b"?: number;
"e"?: Encoding;
"t"?: string;
"N"?: boolean;
"X"?: boolean;
"L"?: boolean;
"B"?: boolean;
"x"?: boolean;
"c"?: number;
"r"?: number;
}
export interface InputOptions extends StreamOptions {
"ignore-length"?: boolean;
"volume"?: number;
"v"?: number;
}
export interface OutputOptions extends StreamOptions {
"comment"?: string;
"add-comment"?: string;
"comment-file"?: string;
"compression"?: number;
"C"?: number;
}
export interface GlobalOptions {
"buffer"?: number;
"combine"?: Combine;
"mix"?: boolean;
"no-dither"?: boolean;
"effects-file"?: string;
"guard"?: boolean;
"input-buffer"?: number;
"norm"?: boolean;
"play-rate-arg"?: string;
"plot"?: "gnuplot" | "octave";
"replay-gain"?: "track" | "album" | "off";
"single-threaded"?: boolean;
"temp"?: string;
"R"?: boolean;
"M"?: boolean;
"T"?: boolean;
"D"?: boolean;
"G"?: boolean;
}
export interface SoxOptions {
input?: InputOptions;
output: OutputOptions;
effects?: Effect[];
global?: GlobalOptions;
soxPath?: string;
}
}
declare function Sox(options: Sox.SoxOptions): NodeJS.ReadWriteStream;
export = Sox;