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

22 lines
728 B
TypeScript
Raw Permalink Normal View History

2022-11-26 01:22:02 +00:00
import ResonatorScene from './scenes/webaudio-scene';
import ResonatorAudioContext from './audio-context';
import BaseEffect from './effects/base-effect';
export default class AudioGraph {
private master;
private effectsBus;
private worldBus;
private secondaryBus;
private effects;
private scene;
private context;
private swapChannels;
private channelSplitter;
private channelMerger;
constructor(scene: ResonatorScene, context: ResonatorAudioContext, swapChannels?: boolean);
init(): void;
connectToMaster(input: any): void;
connectToUI(input: AudioNode): void;
applyEffect(effect: BaseEffect): void;
removeEffect(effect: BaseEffect): void;
}