1 | import { Param } from "../../core/context/Param.js";
|
2 | import { InputNode, OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
3 | import { AudioRange, Decibels } from "../../core/type/Units.js";
|
4 | export interface PanVolOptions extends ToneAudioNodeOptions {
|
5 | pan: AudioRange;
|
6 | volume: Decibels;
|
7 | mute: boolean;
|
8 | channelCount: number;
|
9 | }
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare class PanVol extends ToneAudioNode<PanVolOptions> {
|
19 | readonly name: string;
|
20 | readonly input: InputNode;
|
21 | readonly output: OutputNode;
|
22 | |
23 |
|
24 |
|
25 | private _panner;
|
26 | |
27 |
|
28 |
|
29 |
|
30 |
|
31 | readonly pan: Param<"audioRange">;
|
32 | |
33 |
|
34 |
|
35 | private _volume;
|
36 | |
37 |
|
38 |
|
39 | readonly volume: Param<"decibels">;
|
40 | |
41 |
|
42 |
|
43 |
|
44 | constructor(pan?: AudioRange, volume?: Decibels);
|
45 | constructor(options?: Partial<PanVolOptions>);
|
46 | static getDefaults(): PanVolOptions;
|
47 | /**
|
48 | * Mute/unmute the volume
|
49 | */
|
50 | get mute(): boolean;
|
51 | set mute(mute: boolean);
|
52 | dispose(): this;
|
53 | }
|