1 | import { PowerOfTwo } from "../../core/type/Units.js";
|
2 | import { MeterBase, MeterBaseOptions } from "./MeterBase.js";
|
3 | export interface WaveformOptions extends MeterBaseOptions {
|
4 | |
5 |
|
6 |
|
7 | size: PowerOfTwo;
|
8 | }
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export declare class Waveform extends MeterBase<WaveformOptions> {
|
14 | readonly name: string;
|
15 | |
16 |
|
17 |
|
18 | constructor(size?: PowerOfTwo);
|
19 | constructor(options?: Partial<WaveformOptions>);
|
20 | static getDefaults(): WaveformOptions;
|
21 | /**
|
22 | * Return the waveform for the current time as a Float32Array where each value in the array
|
23 | * represents a sample in the waveform.
|
24 | */
|
25 | getValue(): Float32Array;
|
26 | /**
|
27 | * The size of analysis. This must be a power of two in the range 16 to 16384.
|
28 | * Determines the size of the array returned by {@link getValue}.
|
29 | */
|
30 | get size(): PowerOfTwo;
|
31 | set size(size: PowerOfTwo);
|
32 | }
|