xsound 3.0.0-alpha → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +65 -22
- package/build/types/AudioModule/index.d.ts +8 -0
- package/build/types/AudioModule/index.d.ts.map +1 -1
- package/build/types/MIDI/index.d.ts +0 -20
- package/build/types/MIDI/index.d.ts.map +1 -1
- package/build/types/MML/Part.d.ts +5 -0
- package/build/types/MML/Part.d.ts.map +1 -1
- package/build/types/MML/Sequencer.d.ts +6 -0
- package/build/types/MML/Sequencer.d.ts.map +1 -1
- package/build/types/MML/Tree.d.ts +1 -1
- package/build/types/MML/Tree.d.ts.map +1 -1
- package/build/types/MML/index.d.ts +14 -8
- package/build/types/MML/index.d.ts.map +1 -1
- package/build/types/MediaModule/index.d.ts +12 -3
- package/build/types/MediaModule/index.d.ts.map +1 -1
- package/build/types/MixerModule/index.d.ts +26 -9
- package/build/types/MixerModule/index.d.ts.map +1 -1
- package/build/types/NoiseModule/index.d.ts +8 -1
- package/build/types/NoiseModule/index.d.ts.map +1 -1
- package/build/types/OneshotModule/index.d.ts +14 -7
- package/build/types/OneshotModule/index.d.ts.map +1 -1
- package/build/types/OscillatorModule/Glide.d.ts +19 -1
- package/build/types/OscillatorModule/Glide.d.ts.map +1 -1
- package/build/types/OscillatorModule/Oscillator.d.ts +1 -1
- package/build/types/OscillatorModule/Oscillator.d.ts.map +1 -1
- package/build/types/OscillatorModule/index.d.ts +14 -7
- package/build/types/OscillatorModule/index.d.ts.map +1 -1
- package/build/types/ProcessorModule/index.d.ts +8 -1
- package/build/types/ProcessorModule/index.d.ts.map +1 -1
- package/build/types/SoundModule/Analyser/FFT.d.ts +4 -3
- package/build/types/SoundModule/Analyser/FFT.d.ts.map +1 -1
- package/build/types/SoundModule/Analyser/Time.d.ts +4 -3
- package/build/types/SoundModule/Analyser/Time.d.ts.map +1 -1
- package/build/types/SoundModule/Analyser/TimeOverview.d.ts +6 -5
- package/build/types/SoundModule/Analyser/TimeOverview.d.ts.map +1 -1
- package/build/types/SoundModule/Analyser/Visualizer.d.ts +7 -6
- package/build/types/SoundModule/Analyser/Visualizer.d.ts.map +1 -1
- package/build/types/SoundModule/Analyser/index.d.ts +10 -10
- package/build/types/SoundModule/Analyser/index.d.ts.map +1 -1
- package/build/types/SoundModule/Effectors/Distortion.d.ts +67 -0
- package/build/types/SoundModule/Effectors/Distortion.d.ts.map +1 -1
- package/build/types/SoundModule/Effectors/Effector.d.ts +4 -6
- package/build/types/SoundModule/Effectors/Effector.d.ts.map +1 -1
- package/build/types/SoundModule/Effectors/EnvelopeGenerator.d.ts +21 -4
- package/build/types/SoundModule/Effectors/EnvelopeGenerator.d.ts.map +1 -1
- package/build/types/SoundModule/Effectors/Listener.d.ts +2 -0
- package/build/types/SoundModule/Effectors/Listener.d.ts.map +1 -1
- package/build/types/SoundModule/Effectors/PitchShifter.d.ts +1 -1
- package/build/types/SoundModule/Effectors/PitchShifter.d.ts.map +1 -1
- package/build/types/SoundModule/Effectors/Reverb.d.ts +2 -3
- package/build/types/SoundModule/Effectors/Reverb.d.ts.map +1 -1
- package/build/types/SoundModule/Effectors/VocalCanceler.d.ts +19 -1
- package/build/types/SoundModule/Effectors/VocalCanceler.d.ts.map +1 -1
- package/build/types/SoundModule/Recorder/index.d.ts +4 -2
- package/build/types/SoundModule/Recorder/index.d.ts.map +1 -1
- package/build/types/SoundModule/Session/Room.d.ts +6 -12
- package/build/types/SoundModule/Session/Room.d.ts.map +1 -1
- package/build/types/SoundModule/Session/index.d.ts +33 -20
- package/build/types/SoundModule/Session/index.d.ts.map +1 -1
- package/build/types/SoundModule/index.d.ts +27 -10
- package/build/types/SoundModule/index.d.ts.map +1 -1
- package/build/types/StreamModule/NoiseGate.d.ts +19 -1
- package/build/types/StreamModule/NoiseGate.d.ts.map +1 -1
- package/build/types/StreamModule/NoiseSuppressor.d.ts +19 -1
- package/build/types/StreamModule/NoiseSuppressor.d.ts.map +1 -1
- package/build/types/StreamModule/index.d.ts +12 -4
- package/build/types/StreamModule/index.d.ts.map +1 -1
- package/build/types/XSound/index.d.ts +17 -16
- package/build/types/XSound/index.d.ts.map +1 -1
- package/build/types/interfaces.d.ts +9 -6
- package/build/types/interfaces.d.ts.map +1 -1
- package/build/types/main.d.ts +39 -35
- package/build/types/main.d.ts.map +1 -1
- package/build/types/types.d.ts +1 -0
- package/build/types/types.d.ts.map +1 -1
- package/build/xsound.js +1 -1
- package/build/xsound.js.LICENSE.txt +1 -1
- package/build/xsound.js.map +1 -1
- package/build/xsound.min.js +1 -1
- package/build/xsound.min.js.LICENSE.txt +1 -1
- package/build/xsound.min.js.map +1 -1
- package/package.json +25 -22
|
@@ -4,10 +4,11 @@ import { BufferSize } from '../../types';
|
|
|
4
4
|
* This class is superclass for effector classes.
|
|
5
5
|
* Also, this class is used for implementing custom effector.
|
|
6
6
|
* @constructor
|
|
7
|
+
* @abstract
|
|
7
8
|
* @implements {Connectable}
|
|
8
9
|
* @implements {Statable}
|
|
9
10
|
*/
|
|
10
|
-
export declare class Effector implements Connectable, Statable {
|
|
11
|
+
export declare abstract class Effector implements Connectable, Statable {
|
|
11
12
|
protected context: AudioContext;
|
|
12
13
|
protected input: GainNode;
|
|
13
14
|
protected output: GainNode;
|
|
@@ -38,15 +39,12 @@ export declare class Effector implements Connectable, Statable {
|
|
|
38
39
|
* @return {GainNode} Return value is for `connect` method chain.
|
|
39
40
|
* @abstract
|
|
40
41
|
*/
|
|
41
|
-
connect(): GainNode;
|
|
42
|
+
abstract connect(): GainNode;
|
|
42
43
|
/**
|
|
43
44
|
* This method gets effector's parameters as associative array.
|
|
44
|
-
* @return {object}
|
|
45
45
|
* @abstract
|
|
46
46
|
*/
|
|
47
|
-
params():
|
|
48
|
-
[paramName: string]: unknown;
|
|
49
|
-
};
|
|
47
|
+
abstract params(): void;
|
|
50
48
|
/**
|
|
51
49
|
* This method gets effector's parameters as JSON.
|
|
52
50
|
* @return {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Effector.d.ts","sourceRoot":"","sources":["../../../../src/SoundModule/Effectors/Effector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC
|
|
1
|
+
{"version":3,"file":"Effector.d.ts","sourceRoot":"","sources":["../../../../src/SoundModule/Effectors/Effector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC;;;;;;;GAOG;AACH,8BAAsB,QAAS,YAAW,WAAW,EAAE,QAAQ;IAC7D,SAAS,CAAC,OAAO,EAAE,YAAY,CAAC;IAChC,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC;IAC1B,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC;IAE3B,SAAS,CAAC,GAAG,EAAE,cAAc,CAAC;IAC9B,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC;IAC1B,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC;IAC3B,SAAS,CAAC,SAAS,EAAE,mBAAmB,CAAC;IAEzC,SAAS,CAAC,QAAQ,UAAQ;IAC1B,SAAS,CAAC,MAAM,UAAQ;IAExB;;;OAGG;gBACS,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU;IAezD;;;OAGG;IACI,KAAK,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI;IAStC;;;;OAIG;IACI,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI;IAwB1D;;;;OAIG;aACa,OAAO,IAAI,QAAQ;IAEnC;;;OAGG;aACa,MAAM,IAAI,IAAI;IAE9B;;;OAGG;IACI,MAAM,IAAI,MAAM;IAIvB;;;OAGG;IACI,KAAK,IAAI,OAAO;IAIvB;;;OAGG;IACI,QAAQ,IAAI,QAAQ;IAY3B;;;OAGG;IACI,UAAU,IAAI,QAAQ;IAY7B;;OAEG;IACH,IAAW,KAAK,IAAI,QAAQ,CAE3B;IAED;;OAEG;IACH,IAAW,MAAM,IAAI,QAAQ,CAE5B;CACF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Statable } from '../../interfaces';
|
|
1
2
|
export declare type EnvelopeGeneratorParams = {
|
|
2
3
|
attack?: number;
|
|
3
4
|
decay?: number;
|
|
@@ -7,9 +8,9 @@ export declare type EnvelopeGeneratorParams = {
|
|
|
7
8
|
/**
|
|
8
9
|
* This private class is for Envelope Generator.
|
|
9
10
|
* @constructor
|
|
10
|
-
* @
|
|
11
|
+
* @implements {Statable}
|
|
11
12
|
*/
|
|
12
|
-
export declare class EnvelopeGenerator {
|
|
13
|
+
export declare class EnvelopeGenerator implements Statable {
|
|
13
14
|
static MIN_GAIN: number;
|
|
14
15
|
private context;
|
|
15
16
|
private generators;
|
|
@@ -19,6 +20,7 @@ export declare class EnvelopeGenerator {
|
|
|
19
20
|
private decay;
|
|
20
21
|
private sustain;
|
|
21
22
|
private release;
|
|
23
|
+
private isActive;
|
|
22
24
|
/**
|
|
23
25
|
* @param {AudioContext} context This argument is in order to use Web Audio API.
|
|
24
26
|
*/
|
|
@@ -77,14 +79,29 @@ export declare class EnvelopeGenerator {
|
|
|
77
79
|
*/
|
|
78
80
|
clear(disconnected: boolean): void;
|
|
79
81
|
/**
|
|
80
|
-
* This method gets
|
|
82
|
+
* This method gets effector's parameters as associative array.
|
|
81
83
|
* @return {EnvelopeGeneratorParams}
|
|
82
84
|
*/
|
|
83
85
|
params(): EnvelopeGeneratorParams;
|
|
84
86
|
/**
|
|
85
|
-
* This method gets
|
|
87
|
+
* This method gets effector's parameters as JSON.
|
|
86
88
|
* @return {string}
|
|
87
89
|
*/
|
|
88
90
|
toJSON(): string;
|
|
91
|
+
/**
|
|
92
|
+
* This method gets envelope generator state. If returns `true`, envelope generator is active.
|
|
93
|
+
* @return {boolean}
|
|
94
|
+
*/
|
|
95
|
+
state(): boolean;
|
|
96
|
+
/**
|
|
97
|
+
* This method activates envelope generator.
|
|
98
|
+
* @return {EnvelopeGenerator} Return value is for method chain.
|
|
99
|
+
*/
|
|
100
|
+
activate(): EnvelopeGenerator;
|
|
101
|
+
/**
|
|
102
|
+
* This method deactivates envelope generator.
|
|
103
|
+
* @return {EnvelopeGenerator} Return value is for method chain.
|
|
104
|
+
*/
|
|
105
|
+
deactivate(): EnvelopeGenerator;
|
|
89
106
|
}
|
|
90
107
|
//# sourceMappingURL=EnvelopeGenerator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvelopeGenerator.d.ts","sourceRoot":"","sources":["../../../../src/SoundModule/Effectors/EnvelopeGenerator.ts"],"names":[],"mappings":"AAAA,oBAAY,uBAAuB,GAAG;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAC;AAEF;;;;GAIG;AACH,qBAAa,
|
|
1
|
+
{"version":3,"file":"EnvelopeGenerator.d.ts","sourceRoot":"","sources":["../../../../src/SoundModule/Effectors/EnvelopeGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,oBAAY,uBAAuB,GAAG;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAC;AAEF;;;;GAIG;AACH,qBAAa,iBAAkB,YAAW,QAAQ;IAChD,OAAc,QAAQ,SAAQ;IAE9B,OAAO,CAAC,OAAO,CAA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ACI,QAAQ,IAAI,iBAAiB;IAKpC;;;OAGG;IACI,UAAU,IAAI,iBAAiB;CAIvC"}
|
|
@@ -24,6 +24,8 @@ export declare class Listener extends Effector {
|
|
|
24
24
|
* @param {AudioContext} context This argument is in order to use Web Audio API.
|
|
25
25
|
*/
|
|
26
26
|
constructor(context: AudioContext);
|
|
27
|
+
/** @override */
|
|
28
|
+
connect(): GainNode;
|
|
27
29
|
/**
|
|
28
30
|
* This method gets or sets parameters for audio listener.
|
|
29
31
|
* This method is overloaded for type interface and type check.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Listener.d.ts","sourceRoot":"","sources":["../../../../src/SoundModule/Effectors/Listener.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,oBAAY,cAAc,GAAG;IAC3B,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ,CAAC;AAEF;;;;GAIG;AACH,qBAAa,QAAS,SAAQ,QAAQ;IACpC,OAAO,CAAC,QAAQ,CAAgB;IAEhC,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CAAC,QAAQ,CAAa;IAC7B,OAAO,CAAC,GAAG,CAAa;IAExB;;OAEG;gBACS,OAAO,EAAE,YAAY;
|
|
1
|
+
{"version":3,"file":"Listener.d.ts","sourceRoot":"","sources":["../../../../src/SoundModule/Effectors/Listener.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,oBAAY,cAAc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|
*/
|
|
12
12
|
export declare class PitchShifter extends Effector {
|
|
13
|
+
static readonly GAIN_CORRECTION: 2;
|
|
13
14
|
private pitch;
|
|
14
|
-
private gainCorrection;
|
|
15
15
|
/**
|
|
16
16
|
* @param {AudioContext} context This argument is in order to use Web Audio API.
|
|
17
17
|
* @param {BufferSize} bufferSize This argument is buffer size for `ScriptProcessorNode`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PitchShifter.d.ts","sourceRoot":"","sources":["../../../../src/SoundModule/Effectors/PitchShifter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,oBAAY,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAEF;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,QAAQ;IACxC,
|
|
1
|
+
{"version":3,"file":"PitchShifter.d.ts","sourceRoot":"","sources":["../../../../src/SoundModule/Effectors/PitchShifter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,oBAAY,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAEF;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,QAAQ;IACxC,gBAAuB,eAAe,IAAgB;IAEtD,OAAO,CAAC,KAAK,CAAO;IAEpB;;;OAGG;gBACS,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU;IASzD,gBAAgB;IACA,KAAK,IAAI,IAAI;IA0D7B,gBAAgB;IACA,IAAI,IAAI,IAAI;IAgB5B,gBAAgB;IACA,OAAO,IAAI,QAAQ;IAiBnC;;;;;;OAMG;IACI,KAAK,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM;IAC9B,KAAK,CAAC,MAAM,EAAE,kBAAkB,GAAG,YAAY;IA6BtD,gBAAgB;IACA,MAAM,IAAI,kBAAkB;IAO5C,gBAAgB;IACA,QAAQ,IAAI,YAAY;IAKxC,gBAAgB;IACA,UAAU,IAAI,YAAY;CAI3C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effector } from './Effector';
|
|
2
|
-
declare type ReverbErrorText = 'error' | 'timeout' | 'decode';
|
|
2
|
+
export declare type ReverbErrorText = 'error' | 'timeout' | 'decode';
|
|
3
3
|
export declare type ReverbParams = {
|
|
4
4
|
state?: boolean;
|
|
5
5
|
buffer?: number | AudioBuffer | null;
|
|
@@ -18,7 +18,7 @@ export declare class Reverb extends Effector {
|
|
|
18
18
|
private wet;
|
|
19
19
|
private tone;
|
|
20
20
|
private rirs;
|
|
21
|
-
private
|
|
21
|
+
private loadError;
|
|
22
22
|
/**
|
|
23
23
|
* @param {AudioContext} context This argument is in order to use Web Audio API.
|
|
24
24
|
*/
|
|
@@ -77,5 +77,4 @@ export declare class Reverb extends Effector {
|
|
|
77
77
|
*/
|
|
78
78
|
private load;
|
|
79
79
|
}
|
|
80
|
-
export {};
|
|
81
80
|
//# sourceMappingURL=Reverb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reverb.d.ts","sourceRoot":"","sources":["../../../../src/SoundModule/Effectors/Reverb.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,
|
|
1
|
+
{"version":3,"file":"Reverb.d.ts","sourceRoot":"","sources":["../../../../src/SoundModule/Effectors/Reverb.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,oBAAY,eAAe,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE7D,oBAA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E,eAAe,GAAG,IAAI,CAAC;QAChF,gBAAgB,CAAC,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,CAAC;KAC/C,GAAG,IAAI;IAgBV,gBAAgB;IACA,MAAM,IAAI,YAAY;IAStC,gBAAgB;IACA,QAAQ,IAAI,MAAM;IASlC,gBAAgB;IACA,UAAU,IAAI,MAAM;IASpC;;;;;;;;OAQG;IACH,OAAO,CAAC,IAAI;CAwEb"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import { Statable } from '../../interfaces';
|
|
1
2
|
export declare type VocalCancelerParams = {
|
|
2
3
|
depth?: number;
|
|
3
4
|
};
|
|
4
5
|
/**
|
|
5
6
|
* This private class is for Vocal Canceler.
|
|
6
7
|
* @constructor
|
|
8
|
+
* @implements {Statable}
|
|
7
9
|
*/
|
|
8
|
-
export declare class VocalCanceler {
|
|
10
|
+
export declare class VocalCanceler implements Statable {
|
|
9
11
|
private depth;
|
|
12
|
+
private isActive;
|
|
10
13
|
constructor();
|
|
11
14
|
/**
|
|
12
15
|
* This method removes vocal part from audio on playing.
|
|
@@ -27,5 +30,20 @@ export declare class VocalCanceler {
|
|
|
27
30
|
* @return {VocalCancelerParams}
|
|
28
31
|
*/
|
|
29
32
|
params(): VocalCancelerParams;
|
|
33
|
+
/**
|
|
34
|
+
* This method gets vocal canceler state. If returns `true`, vocal canceler is active.
|
|
35
|
+
* @return {boolean}
|
|
36
|
+
*/
|
|
37
|
+
state(): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* This method activates vocal canceler.
|
|
40
|
+
* @return {VocalCanceler} Return value is for method chain.
|
|
41
|
+
*/
|
|
42
|
+
activate(): VocalCanceler;
|
|
43
|
+
/**
|
|
44
|
+
* This method deactivates vocal canceler.
|
|
45
|
+
* @return {VocalCanceler} Return value is for method chain.
|
|
46
|
+
*/
|
|
47
|
+
deactivate(): VocalCanceler;
|
|
30
48
|
}
|
|
31
49
|
//# sourceMappingURL=VocalCanceler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VocalCanceler.d.ts","sourceRoot":"","sources":["../../../../src/SoundModule/Effectors/VocalCanceler.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB,GAAG;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"VocalCanceler.d.ts","sourceRoot":"","sources":["../../../../src/SoundModule/Effectors/VocalCanceler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,oBAAY,mBAAmB,GAAG;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAEF;;;;GAIG;AACH,qBAAa,aAAc,YAAW,QAAQ;IAC5C,OAAO,CAAC,KAAK,CAAK;IAClB,OAAO,CAAC,QAAQ,CAAQ;;IAMxB;;;;;OAKG;IACI,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;IAQlD;;;;;OAKG;IACI,KAAK,CAAC,MAAM,EAAE,MAAM,mBAAmB,GAAG,mBAAmB,GAAG,mBAAmB,CAAC,MAAM,mBAAmB,CAAC,GAAG,aAAa;IA0BrI;;;OAGG;IACI,MAAM,IAAI,mBAAmB;IAMpC;;;OAGG;IACI,KAAK,IAAI,OAAO;IAIvB;;;OAGG;IACI,QAAQ,IAAI,aAAa;IAKhC;;;OAGG;IACI,UAAU,IAAI,aAAa;CAInC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Connectable } from '../../interfaces';
|
|
2
|
-
import { BufferSize } from '../../types';
|
|
2
|
+
import { BufferSize, ChannelNumber } from '../../types';
|
|
3
|
+
import { Track } from './Track';
|
|
4
|
+
import { Channel } from './Channel';
|
|
3
5
|
export declare type RecordType = 1 | 2;
|
|
4
|
-
export declare type ChannelNumber = -1 | 0 | 1;
|
|
5
6
|
export declare type QuantizationBit = 8 | 16;
|
|
6
7
|
export declare type WaveExportType = 'base64' | 'dataURL' | 'blob' | 'objectURL';
|
|
8
|
+
export type { Track, Channel };
|
|
7
9
|
export declare type RecorderParams = {
|
|
8
10
|
'0'?: number;
|
|
9
11
|
'1'?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/SoundModule/Recorder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/SoundModule/Recorder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,oBAAY,UAAU,GAAQ,CAAC,GAAG,CAAC,CAAC;AACpC,oBAAY,eAAe,GAAG,CAAC,GAAG,EAAE,CAAC;AACrC,oBAAY,cAAc,GAAI,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,CAAC;AAE1E,YAAY,EACV,KAAK,EACL,OAAO,EACR,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAC;AAEF;;;GAGG;AACH,qBAAa,QAAS,YAAW,WAAW;IAC1C,OAAO,CAAC,SAAS,CAAsB;IACvC,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,QAAQ,CAAiB;IACjC,OAAO,CAAC,WAAW,CAAM;IACzB,OAAO,CAAC,MAAM,CAAQ;IAEtB;;;;;OAKG;gBACS,OAAO,EAAE,YAAY,EAAE,UAA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berOfSessionChannels, SessionParams } from './';
|
|
2
|
+
import { SessionSetupParams, SessionConnectionParams } from './';
|
|
5
3
|
export declare type RoomMap = {
|
|
6
4
|
[id: string]: WebSocket | null;
|
|
7
5
|
};
|
|
@@ -18,19 +16,15 @@ export declare class Room implements Connectable {
|
|
|
18
16
|
private receiver;
|
|
19
17
|
private websocket;
|
|
20
18
|
/**
|
|
21
|
-
* @param {string} id This argument is string that identifies messaging room.
|
|
22
19
|
* @param {AudioContext} context This argument is in order to use interfaces of Web Audio API.
|
|
23
|
-
* @param {
|
|
24
|
-
* @param {NumberOfSessionChannels} numberOfInputs This argument is the number of inputs for `ScriptProcessorNode`.
|
|
25
|
-
* @param {NumberOfSessionChannels} numberOfOutputs This argument the number of outputs for `ScriptProcessorNode`.
|
|
26
|
-
* @param {Analyser} analyser This argument is instance of `Analyser`.
|
|
20
|
+
* @param {SessionSetupParams} params This argument is in order to create instance of `Room`.
|
|
27
21
|
*/
|
|
28
|
-
constructor(
|
|
22
|
+
constructor(context: AudioContext, params: SessionSetupParams);
|
|
29
23
|
/**
|
|
30
24
|
* This method creates instance of `WebSocket` and registers event handlers. Namely, join room.
|
|
31
|
-
* @param {
|
|
25
|
+
* @param {SessionConnectionParams} params This argument is in order to create instance of `WebSocket`.
|
|
32
26
|
*/
|
|
33
|
-
join(params:
|
|
27
|
+
join(params: SessionConnectionParams): void;
|
|
34
28
|
/**
|
|
35
29
|
* This method sends sound Room ID and data (as `Float32Array`) to server.
|
|
36
30
|
*/
|
|
@@ -44,7 +38,7 @@ export declare class Room implements Connectable {
|
|
|
44
38
|
* This method closes connection to WebSocket server and destroys instance of `WebSocket`.
|
|
45
39
|
* Namely, leave room permanently.
|
|
46
40
|
*/
|
|
47
|
-
|
|
41
|
+
clear(): void;
|
|
48
42
|
/**
|
|
49
43
|
* This method connects `AudioNode`s for receiving data.
|
|
50
44
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Room.d.ts","sourceRoot":"","sources":["../../../../src/SoundModule/Session/Room.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Room.d.ts","sourceRoot":"","sources":["../../../../src/SoundModule/Session/Room.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,IAAI,CAAC;AAEjE,oBAAY,OAAO,GAAG;IACpB,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;CAC/B,CAAC;AAEF;;;GAGG;AACH,qBAAa,IAAK,YAAW,WAAW;IAEtC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAQ;IAElC,OAAO,CAAC,EAAE,CAAS;IACnB,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,QAAQ,CAAW;IAE3B,OAAO,CAAC,MAAM,CAAsB;IACpC,OAAO,CAAC,QAAQ,CAAsB;IAEtC,OAAO,CAAC,SAAS,CAA0B;IAE3C;;;OAGG;gBACS,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB;IAY7D;;;OAGG;IACI,IAAI,CAAC,MAAM,EAAE,uBAAuB,GAAG,IAAI;IAsElD;;OAEG;IACI,IAAI,IAAI,IAAI;IA+BnB;;;OAGG;IACI,KAAK,IAAI,IAAI;IASpB;;;OAGG;IACI,KAAK,IAAI,IAAI;IAWpB;;OAEG;IACI,OAAO,IAAI,IAAI;IAQtB;;;OAGG;IACI,SAAS,IAAI,OAAO;IAI3B;;;OAGG;IACI,GAAG,IAAI,OAAO;IAIrB,gBAAgB;IAChB,IAAW,KAAK,IAAI,mBAAmB,CAEtC;IAED,gBAAgB;IAChB,IAAW,MAAM,IAAI,mBAAmB,CAEvC;IAED,gBAAgB;IACT,QAAQ,IAAI,MAAM;CAG1B"}
|
|
@@ -1,18 +1,35 @@
|
|
|
1
1
|
import { Connectable } from '../../interfaces';
|
|
2
2
|
import { BufferSize } from '../../types';
|
|
3
3
|
import { Analyser } from '../Analyser';
|
|
4
|
-
import { Room } from './Room';
|
|
4
|
+
import { Room, RoomMap } from './Room';
|
|
5
5
|
export declare type NumberOfSessionChannels = 1 | 2;
|
|
6
|
+
export type { Room, RoomMap };
|
|
6
7
|
/**
|
|
7
|
-
* @property {
|
|
8
|
-
* @property {
|
|
9
|
-
* @property {
|
|
10
|
-
* @property {
|
|
11
|
-
* @property {
|
|
12
|
-
* @property {function} closeCallback This argument is invoked as `onclose` event handler in instance of `WebSocket`.
|
|
13
|
-
* @property {function} errorCallback This argument is invoked as `onerror` event handler in instance of `WebSocket`.
|
|
8
|
+
* @property {string} roomId This property is string that identifies messaging room.
|
|
9
|
+
* @property {BufferSize} bufferSize This property is buffer size for `ScriptProcessorNode`.
|
|
10
|
+
* @property {NumberOfSessionChannels} numberOfInputs This property is the number of inputs for `ScriptProcessorNode`.
|
|
11
|
+
* @property {NumberOfSessionChannels} numberOfOutputs This property the number of outputs for `ScriptProcessorNode`.
|
|
12
|
+
* @property {Analyser} analyser This property is instance of `Analyser`.
|
|
14
13
|
*/
|
|
15
|
-
export declare type
|
|
14
|
+
export declare type SessionSetupParams = {
|
|
15
|
+
roomId: string;
|
|
16
|
+
bufferSize: BufferSize;
|
|
17
|
+
numberOfInputs: NumberOfSessionChannels;
|
|
18
|
+
numberOfOutputs: NumberOfSessionChannels;
|
|
19
|
+
analyser: Analyser;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @property {string} roomId This property is string that identifies messaging room.
|
|
23
|
+
* @property {boolean} tls This property is in order to select protocol (either `wss` or `ws`).
|
|
24
|
+
* @property {string} host This property is server's hostname.
|
|
25
|
+
* @property {number} port This property is port number for connection.
|
|
26
|
+
* @property {string} path This property is script path that is executed in server side.
|
|
27
|
+
* @property {function} openCallback This property is invoked as `onopen` event handler in instance of `WebSocket`.
|
|
28
|
+
* @property {function} closeCallback This property is invoked as `onclose` event handler in instance of `WebSocket`.
|
|
29
|
+
* @property {function} errorCallback This property is invoked as `onerror` event handler in instance of `WebSocket`.
|
|
30
|
+
*/
|
|
31
|
+
export declare type SessionConnectionParams = {
|
|
32
|
+
roomId: string;
|
|
16
33
|
tls: boolean;
|
|
17
34
|
host: string;
|
|
18
35
|
port: number;
|
|
@@ -35,21 +52,17 @@ export declare class Session implements Connectable {
|
|
|
35
52
|
*/
|
|
36
53
|
constructor(context: AudioContext);
|
|
37
54
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @param {
|
|
40
|
-
* @param {NumberOfSessionChannels} numberOfInputs This argument is the number of inputs for `ScriptProcessorNode`.
|
|
41
|
-
* @param {NumberOfSessionChannels} numberOfOutputs This argument the number of outputs for `ScriptProcessorNode`.
|
|
42
|
-
* @param {Analyser} analyser This argument is instance of `Analyser`.
|
|
55
|
+
* This method creates instance of `Room`
|
|
56
|
+
* @param {SessionSetupParams} params This argument is in order to create instance of `Room`.
|
|
43
57
|
* @return {Session} Return value is for method chain.
|
|
44
58
|
*/
|
|
45
|
-
setup(
|
|
59
|
+
setup(params: SessionSetupParams): Session;
|
|
46
60
|
/**
|
|
47
|
-
* This method creates instance of `
|
|
48
|
-
* @param {
|
|
49
|
-
* @param {SessionParams} params This argument is in order to create instance of `WebSocket`.
|
|
61
|
+
* This method creates instance of `WebSocket`
|
|
62
|
+
* @param {SessionConnectionParams} params This argument is in order to create instance of `WebSocket`.
|
|
50
63
|
* @return {Session} Return value is for method chain.
|
|
51
64
|
*/
|
|
52
|
-
ready(
|
|
65
|
+
ready(params: SessionConnectionParams): Session;
|
|
53
66
|
/**
|
|
54
67
|
* This method sends sound data to server.
|
|
55
68
|
* @param {string} roomId This argument is string that identifies messaging room.
|
|
@@ -67,7 +80,7 @@ export declare class Session implements Connectable {
|
|
|
67
80
|
* @param {string} roomId This argument is string that identifies messaging room.
|
|
68
81
|
* @return {Session} Return value is for method chain.
|
|
69
82
|
*/
|
|
70
|
-
|
|
83
|
+
clear(roomId: string): Session;
|
|
71
84
|
/**
|
|
72
85
|
* This method connects `AudioNode`s.
|
|
73
86
|
* @param {string} roomId This argument is string that identifies messaging room.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/SoundModule/Session/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/SoundModule/Session/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEvC,oBAAY,uBAAuB,GAAG,CAAC,GAAG,CAAC,CAAC;AAE5C,YAAY,EACV,IAAI,EACJ,OAAO,EACR,CAAC;AAEF;;;;;;GAMG;AACH,oBAAY,kBAAkB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,UAAU,CAAC;IACvB,cAAc,EAAE,uBAAuB,CAAC;IACxC,eAAe,EAAE,uBAAuB,CAAC;IACzC,QAAQ,EAAE,QAAQ,CAAA;CACnB,CAAC;AAEF;;;;;;;;;GASG;AACH,oBAAY,uBAAuB,GAAG;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAClC,aAAa,CAAC,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACnC,aAAa,CAAC,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;CACnC,CAAC;AAEF;;;GAGG;AACH,qBAAa,OAAQ,YAAW,WAAW;IACzC,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,KAAK,CAAW;IACxB,OAAO,CAAC,MAAM,CAAW;IACzB,OAAO,CAAC,KAAK,CAAc;IAE3B;;OAEG;gBACS,OAAO,EAAE,YAAY;IAOjC;;;;OAIG;IACI,KAAK,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO;IAKjD;;;;OAIG;IACI,KAAK,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO;IAYtD;;;;OAIG;IACI,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAcrC;;;;OAIG;IACI,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAYpC;;;;OAIG;IACI,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAYrC;;;;OAIG;IACI,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAavC;;;;OAIG;IACI,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAUzC;;;;OAIG;IACI,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAIvC,gBAAgB;IAChB,IAAW,KAAK,IAAI,QAAQ,CAE3B;IAED,gBAAgB;IAChB,IAAW,MAAM,IAAI,QAAQ,CAE5B;CACF"}
|
|
@@ -49,8 +49,9 @@ export declare type SoundModuleParams = {
|
|
|
49
49
|
* This class is superclass that is the top in this library.
|
|
50
50
|
* This class is extended as subclass (`OscillatorModule`, `OneshotModule`, `NoiseModule`, `AudioModule`, `MediaModule`, `StreamModule`, `ProcessorModule`, `MixerModule` ...etc).
|
|
51
51
|
* @constructor
|
|
52
|
+
* @abstract
|
|
52
53
|
*/
|
|
53
|
-
export declare class SoundModule implements Connectable {
|
|
54
|
+
export declare abstract class SoundModule implements Connectable {
|
|
54
55
|
static readonly NUMBER_OF_INPUTS = 2;
|
|
55
56
|
static readonly NUMBER_OF_OUTPUTS = 2;
|
|
56
57
|
protected context: AudioContext;
|
|
@@ -78,11 +79,18 @@ export declare class SoundModule implements Connectable {
|
|
|
78
79
|
protected panner: Panner;
|
|
79
80
|
protected listener: Listener;
|
|
80
81
|
protected envelopegenerator: EnvelopeGenerator;
|
|
82
|
+
protected runningAnalyser: boolean;
|
|
83
|
+
protected mixed: boolean;
|
|
81
84
|
/**
|
|
82
85
|
* @param {AudioContext} context This argument is in order to use Web Audio API.
|
|
83
86
|
* @param {BufferSize} bufferSize This argument is buffer size for `ScriptProcessorNode`.
|
|
84
87
|
*/
|
|
85
88
|
constructor(context: AudioContext, bufferSize: BufferSize);
|
|
89
|
+
/**
|
|
90
|
+
* This method connects `AudioNode`s.
|
|
91
|
+
* @param {AudioNode} source This argument is `AudioNode` as sound source.
|
|
92
|
+
*/
|
|
93
|
+
connect(source: AudioNode): void;
|
|
86
94
|
/**
|
|
87
95
|
* This method changes buffer size for `ScriptProcessorNode`.
|
|
88
96
|
* @param {number} bufferSize This argument is buffer size for `ScriptProcessorNode`.
|
|
@@ -118,6 +126,16 @@ export declare class SoundModule implements Connectable {
|
|
|
118
126
|
* @return {SoundModule} Return value is for method chain.
|
|
119
127
|
*/
|
|
120
128
|
suspend(): SoundModule;
|
|
129
|
+
/**
|
|
130
|
+
* This method is invoked on mixing.
|
|
131
|
+
* @return {SoundModule} Return value is for method chain.
|
|
132
|
+
*/
|
|
133
|
+
mix(): SoundModule;
|
|
134
|
+
/**
|
|
135
|
+
* This method is invoked on demixing.
|
|
136
|
+
* @return {SoundModule} Return value is for method chain.
|
|
137
|
+
*/
|
|
138
|
+
demix(): SoundModule;
|
|
121
139
|
/**
|
|
122
140
|
* This method gets effector's parameters as associative array.
|
|
123
141
|
* @return {SoundModuleParams}
|
|
@@ -128,20 +146,19 @@ export declare class SoundModule implements Connectable {
|
|
|
128
146
|
* @return {string}
|
|
129
147
|
*/
|
|
130
148
|
toJSON(): string;
|
|
131
|
-
/**
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
get
|
|
149
|
+
/**
|
|
150
|
+
* Connector for input.
|
|
151
|
+
*/
|
|
152
|
+
abstract get INPUT(): GainNode | ScriptProcessorNode | null;
|
|
153
|
+
/**
|
|
154
|
+
* Connector for output.
|
|
155
|
+
*/
|
|
156
|
+
abstract get OUTPUT(): GainNode;
|
|
135
157
|
/**
|
|
136
158
|
* This method re-initials modules.
|
|
137
159
|
* @param {AudioContext} context This argument is in order to use Web Audio API.
|
|
138
160
|
* @param {BufferSize} bufferSize This argument is buffer size for `ScriptProcessorNode`.
|
|
139
161
|
*/
|
|
140
162
|
protected init(context: AudioContext, bufferSize: BufferSize): void;
|
|
141
|
-
/**
|
|
142
|
-
* This method connects `AudioNode`s.
|
|
143
|
-
* @param {AudioNode} source This argument is `AudioNode` as sound source.
|
|
144
|
-
*/
|
|
145
|
-
protected connect(source: AudioNode): void;
|
|
146
163
|
}
|
|
147
164
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/SoundModule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAw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
7
|
* @constructor
|
|
8
|
+
* @implements {Statable}
|
|
7
9
|
*/
|
|
8
|
-
export declare class NoiseGate {
|
|
10
|
+
export declare class NoiseGate implements Statable {
|
|
9
11
|
private level;
|
|
12
|
+
private isActive;
|
|
10
13
|
constructor();
|
|
11
14
|
/**
|
|
12
15
|
* This method detects background noise and removes this.
|
|
@@ -25,5 +28,20 @@ export declare class NoiseGate {
|
|
|
25
28
|
* @return {NoiseGateParams}
|
|
26
29
|
*/
|
|
27
30
|
params(): NoiseGateParams;
|
|
31
|
+
/**
|
|
32
|
+
* This method gets noise gate state. If returns `true`, noise gate is active.
|
|
33
|
+
* @return {boolean}
|
|
34
|
+
*/
|
|
35
|
+
state(): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* This method activates noise gate.
|
|
38
|
+
* @return {NoiseGate} Return value is for method chain.
|
|
39
|
+
*/
|
|
40
|
+
activate(): NoiseGate;
|
|
41
|
+
/**
|
|
42
|
+
* This method deactivates noise gate.
|
|
43
|
+
* @return {NoiseGate} Return value is for method chain.
|
|
44
|
+
*/
|
|
45
|
+
deactivate(): NoiseGate;
|
|
28
46
|
}
|
|
29
47
|
//# sourceMappingURL=NoiseGate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoiseGate.d.ts","sourceRoot":"","sources":["../../../src/StreamModule/NoiseGate.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"NoiseGate.d.ts","sourceRoot":"","sources":["../../../src/StreamModule/NoiseGate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,oBAAY,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAEF;;;;GAIG;AACH,qBAAa,SAAU,YAAW,QAAQ;IACxC,OAAO,CAAC,KAAK,CAAK;IAClB,OAAO,CAAC,QAAQ,CAAQ;;IAMxB;;;;OAIG;IACI,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAUlC;;;;OAIG;IACI,KAAK,CAAC,MAAM,EAAE,MAAM,eAAe,GAAG,eAAe,GAAG,eAAe,CAAC,MAAM,eAAe,CAAC,GAAG,IAAI;IAwB5G;;;OAGG;IACI,MAAM,IAAI,eAAe;IAMhC;;;OAGG;IACI,KAAK,IAAI,OAAO;IAIvB;;;OAGG;IACI,QAAQ,IAAI,SAAS;IAK5B;;;OAGG;IACI,UAAU,IAAI,SAAS;CAI/B"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import { Statable } from '../interfaces';
|
|
1
2
|
export declare type NoiseSuppressorParams = {
|
|
2
3
|
threshold?: number;
|
|
3
4
|
};
|
|
4
5
|
/**
|
|
5
6
|
* This private class is for Noise Suppressor.
|
|
6
7
|
* @constructor
|
|
8
|
+
* @implements {Statable}
|
|
7
9
|
*/
|
|
8
|
-
export declare class NoiseSuppressor {
|
|
10
|
+
export declare class NoiseSuppressor implements Statable {
|
|
9
11
|
private threshold;
|
|
12
|
+
private isActive;
|
|
10
13
|
constructor();
|
|
11
14
|
/**
|
|
12
15
|
* This method detects background noise and removes this.
|
|
@@ -26,5 +29,20 @@ export declare class NoiseSuppressor {
|
|
|
26
29
|
* @return {NoiseSuppressorParams}
|
|
27
30
|
*/
|
|
28
31
|
params(): NoiseSuppressorParams;
|
|
32
|
+
/**
|
|
33
|
+
* This method gets noise suppressor state. If returns `true`, noise suppressor is active.
|
|
34
|
+
* @return {boolean}
|
|
35
|
+
*/
|
|
36
|
+
state(): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* This method activates noise suppressor.
|
|
39
|
+
* @return {NoiseSuppressor} Return value is for method chain.
|
|
40
|
+
*/
|
|
41
|
+
activate(): NoiseSuppressor;
|
|
42
|
+
/**
|
|
43
|
+
* This method deactivates noise suppressor.
|
|
44
|
+
* @return {NoiseSuppressor} Return value is for method chain.
|
|
45
|
+
*/
|
|
46
|
+
deactivate(): NoiseSuppressor;
|
|
29
47
|
}
|
|
30
48
|
//# sourceMappingURL=NoiseSuppressor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoiseSuppressor.d.ts","sourceRoot":"","sources":["../../../src/StreamModule/NoiseSuppressor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NoiseSuppressor.d.ts","sourceRoot":"","sources":["../../../src/StreamModule/NoiseSuppressor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,oBAAY,qBAAqB,GAAG;IAClC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;AAEF;;;;GAIG;AACH,qBAAa,eAAgB,YAAW,QAAQ;IAC9C,OAAO,CAAC,SAAS,CAAK;IACtB,OAAO,CAAC,QAAQ,CAAQ;;IAMxB;;;;;OAKG;IACI,KAAK,CAAC,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;IA2CnF;;;;OAIG;IACI,KAAK,CAAC,MAAM,EAAE,MAAM,qBAAqB,GAAG,qBAAqB,GAAG,qBAAqB,CAAC,MAAM,qBAAqB,CAAC,GAAG,IAAI;IA0BpI;;;OAGG;IACI,MAAM,IAAI,qBAAqB;IAMtC;;;OAGG;IACI,KAAK,IAAI,OAAO;IAIvB;;;OAGG;IACI,QAAQ,IAAI,eAAe;IAKlC;;;OAGG;IACI,UAAU,IAAI,eAAe;CAIrC"}
|
|
@@ -23,9 +23,9 @@ import { Tremolo } from '../SoundModule/Effectors/Tremolo';
|
|
|
23
23
|
import { Wah } from '../SoundModule/Effectors/Wah';
|
|
24
24
|
import { NoiseGate, NoiseGateParams } from './NoiseGate';
|
|
25
25
|
import { NoiseSuppressor, NoiseSuppressorParams } from './NoiseSuppressor';
|
|
26
|
-
interface MediaStreamTrackAudioSourceNode extends AudioNode {
|
|
26
|
+
export interface MediaStreamTrackAudioSourceNode extends AudioNode {
|
|
27
27
|
}
|
|
28
|
-
export type { NoiseGateParams, NoiseSuppressorParams };
|
|
28
|
+
export type { NoiseGate, NoiseGateParams, NoiseSuppressor, NoiseSuppressorParams };
|
|
29
29
|
export declare type StreamModuleParams = SoundModuleParams & {
|
|
30
30
|
noisegate: NoiseGateParams;
|
|
31
31
|
noisesuppressor: NoiseSuppressorParams;
|
|
@@ -63,13 +63,13 @@ export declare class StreamModule extends SoundModule {
|
|
|
63
63
|
* @param {MediaStream} stream This argument is instance of `MediaStream`.
|
|
64
64
|
* @param {function} successCallback This argument is invoked on success.
|
|
65
65
|
* @param {function} errorCallback This argument is invoked on failure.
|
|
66
|
-
* @return {Promise<
|
|
66
|
+
* @return {Promise<MediaStream|Error>} Return value is `Promise` that `getUserMedia` returns.
|
|
67
67
|
*/
|
|
68
68
|
ready(params?: {
|
|
69
69
|
stream?: MediaStream;
|
|
70
70
|
successCallback?: (stream: MediaStream) => void;
|
|
71
71
|
errorCallback?: (error: Error) => void;
|
|
72
|
-
}): Promise<
|
|
72
|
+
}): Promise<MediaStream | Error>;
|
|
73
73
|
/**
|
|
74
74
|
* This method starts streaming.
|
|
75
75
|
* @return {StreamModule} Return value is for method chain.
|
|
@@ -165,11 +165,19 @@ export declare class StreamModule extends SoundModule {
|
|
|
165
165
|
off(stopTime?: number): StreamModule;
|
|
166
166
|
/** @override */
|
|
167
167
|
suspend(): StreamModule;
|
|
168
|
+
/** @override */
|
|
169
|
+
mix(): StreamModule;
|
|
170
|
+
/** @override */
|
|
171
|
+
demix(): StreamModule;
|
|
168
172
|
/**
|
|
169
173
|
* This method gets stream module parameters as associative array.
|
|
170
174
|
* @return {StreamModuleParams}
|
|
171
175
|
* @override
|
|
172
176
|
*/
|
|
173
177
|
params(): StreamModuleParams;
|
|
178
|
+
/** @override */
|
|
179
|
+
get INPUT(): ScriptProcessorNode;
|
|
180
|
+
/** @override */
|
|
181
|
+
get OUTPUT(): GainNode;
|
|
174
182
|
}
|
|
175
183
|
//# sourceMappingURL=index.d.ts.map
|