Typescript Definition for StereoAnalyserNode
This commit is contained in:
parent
4714da458e
commit
c49550f2a5
1 changed files with 21 additions and 3 deletions
24
src/lib/stereo-analyser-node.d.ts
vendored
24
src/lib/stereo-analyser-node.d.ts
vendored
|
@ -1,4 +1,22 @@
|
|||
declare module "stereo-analyser-node";
|
||||
declare module "stereo-analyser-node" {
|
||||
|
||||
//export function StereoAnalyserNode(audioContext: AudioContext, opts);
|
||||
//export function getFloatTimeDomainData(array: Float32Array);
|
||||
declare interface StereoAnalyserNode {
|
||||
StereoAnalyserNode(
|
||||
audioContext: AudioContext,
|
||||
opts: Object | undefined
|
||||
): {
|
||||
fftSize: number;
|
||||
frequencyBinCount: number;
|
||||
minDecibels: number;
|
||||
maxDecibels: number;
|
||||
smoothingTimeConstant: number;
|
||||
connect(destination: AudioNode | AudioParam): void;
|
||||
disconnect(): void;
|
||||
getFloatFrequencyData(arrayL: Float32Array, arrayR: Float32Array): void;
|
||||
getByteFrequencyData(arrayL: Uint8Array, arrayR: Uint8Array): void;
|
||||
getFloatTimeDomainData(arrayL: Float32Array, arrayR: Float32Array): void;
|
||||
getByteTimeDomainData(arrayL: Uint8Array, arrayR: Uint8Array): void;
|
||||
}
|
||||
}
|
||||
export default StereoAnalyserNode.StereoAnalyserNode();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue