Update framework
This commit is contained in:
12
framework/resonator/effect-bus.js
Normal file
12
framework/resonator/effect-bus.js
Normal file
@@ -0,0 +1,12 @@
|
||||
// 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user