1 | import { InputNode, OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
2 | import { Decibels } from "../../core/type/Units.js";
|
3 | import { Param } from "../../core/context/Param.js";
|
4 | export interface LimiterOptions extends ToneAudioNodeOptions {
|
5 | threshold: Decibels;
|
6 | }
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare class Limiter extends ToneAudioNode<LimiterOptions> {
|
19 | readonly name: string;
|
20 | readonly input: InputNode;
|
21 | readonly output: OutputNode;
|
22 | |
23 |
|
24 |
|
25 | private _compressor;
|
26 | readonly threshold: Param<"decibels">;
|
27 | |
28 |
|
29 |
|
30 | constructor(threshold?: Decibels);
|
31 | constructor(options?: Partial<LimiterOptions>);
|
32 | static getDefaults(): LimiterOptions;
|
33 | /**
|
34 | * A read-only decibel value for metering purposes, representing the current amount of gain
|
35 | * reduction that the compressor is applying to the signal.
|
36 | */
|
37 | get reduction(): Decibels;
|
38 | dispose(): this;
|
39 | }
|