audiomotion-analyzer 4.1.0 → 4.2.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/src/index.d.ts CHANGED
@@ -36,6 +36,7 @@ export interface Options {
36
36
  loRes?: boolean;
37
37
  lumiBars?: boolean;
38
38
  maxDecibels?: number;
39
+ maxFPS?: number;
39
40
  maxFreq?: number;
40
41
  minDecibels?: number;
41
42
  minFreq?: number;
@@ -46,6 +47,7 @@ export interface Options {
46
47
  onCanvasResize?: OnCanvasResizeFunction;
47
48
  outlineBars?: boolean;
48
49
  overlay?: boolean;
50
+ peakLine?: boolean;
49
51
  radial?: boolean;
50
52
  reflexAlpha?: number;
51
53
  reflexBright?: number;
@@ -174,6 +176,7 @@ declare class AudioMotionAnalyzer {
174
176
  get isOutlineBars(): boolean;
175
177
  get isRoundBars(): boolean;
176
178
 
179
+ get isDestroyed(): boolean;
177
180
  get isOn(): boolean;
178
181
 
179
182
  get ledBars(): boolean;
@@ -200,6 +203,9 @@ declare class AudioMotionAnalyzer {
200
203
  get minDecibels(): number;
201
204
  set minDecibels(value: number);
202
205
 
206
+ get maxFPS(): number;
207
+ set maxFPS(value: number);
208
+
203
209
  get maxFreq(): number;
204
210
  set maxFreq(value: number);
205
211
 
@@ -220,6 +226,9 @@ declare class AudioMotionAnalyzer {
220
226
 
221
227
  public overlay: boolean;
222
228
 
229
+ get peakLine(): boolean;
230
+ set peakLine(value: boolean);
231
+
223
232
  get pixelRatio(): number;
224
233
 
225
234
  get radial(): boolean;
@@ -273,7 +282,9 @@ declare class AudioMotionAnalyzer {
273
282
  public connectInput(source: AudioNode): AudioNode;
274
283
  public connectOutput(node?: AudioNode): void;
275
284
 
276
- public disconnectInput(node?: AudioNode | AudioNode[]): void;
285
+ public destroy(): void;
286
+
287
+ public disconnectInput(node?: AudioNode | AudioNode[] | null, stopTracks?: boolean): void;
277
288
  public disconnectOutput(node?: AudioNode): void;
278
289
 
279
290
  public getBars(): AnalyzerBarData[];
@@ -289,7 +300,10 @@ declare class AudioMotionAnalyzer {
289
300
  public setOptions(options?: Options): void;
290
301
  public setSensitivity(minDecibels: number, maxDecibels: number): void;
291
302
 
292
- public toggleAnalyzer(value?: boolean): boolean;
303
+ public start(): void;
304
+ public stop(): void;
305
+
306
+ public toggleAnalyzer(force?: boolean): boolean;
293
307
  public toggleFullscreen(): void;
294
308
  }
295
309