assassin-bug/framework/resonator/effect-bus.js

13 lines
483 B
JavaScript
Raw Normal View History

2022-11-26 01:22:02 +00:00
// Currently unused, but eventually all the effect stuff will be moved from audio graph to here to make it easier to work on
export default class EffectBus {
constructor(context, input, output) {
this.context = context;
this.inputNode = input;
this.channelMerger = this.context.getContext().createChannelMerger(1);
this.inputNode.connect(this.channelMerger);
}
connect(node) {
this.channelMerger.connect(node);
}
}