export class ReverbEffect {
    input;
    output;
    constructor(context, impulse) {
        this.input = context.createConvolver();
        this.input.buffer = impulse ?? null;
        this.output = this.input;
    }
    setImpulse(buffer) {
        this.input.buffer = buffer;
    }
    connect(destination) {
        return this.output.connect(destination);
    }
    disconnect() {
        this.output.disconnect();
    }
    dispose() {
        this.input.buffer = null;
        this.disconnect();
    }
}
//# sourceMappingURL=Reverb.js.map