assassin-bug/framework/resonator/audio-context.d.ts

12 lines
414 B
TypeScript
Raw Normal View History

2022-11-26 01:22:02 +00:00
export default class ResonatorAudioContext {
private context;
constructor();
getContext(): AudioContext;
createGain(): any;
getOutputDestination(): AudioNode;
createBufferSource(): AudioBufferSourceNode;
decodeAudioData(data: ArrayBuffer): Promise<AudioBuffer>;
createPanner(): any;
createMediaElementSource(element: HTMLMediaElement): MediaElementAudioSourceNode;
}