fix: conflicts

This commit is contained in:
Vasilii Milovidov 2023-10-07 19:30:07 +04:00
parent 2f0798de32
commit b25b9d815b
2 changed files with 17 additions and 13 deletions

View file

@ -19,10 +19,9 @@ if (typeof AudioContext !== 'undefined') {
AudioContext.prototype.createReverb = function (duration, fade, lp, dim, ir) {
const convolver = this.createConvolver();
convolver.generate = (d, fade, lp, dim, buf) => {
convolver.generate = (d = 2, fade = 0.1, lp = 15000, dim = 1000, buf) => {
if (buf) {
convolver.buffer = this.adjustLength(d, buf);
return convolver;
} else {
this.generateReverb(
{
@ -42,7 +41,6 @@ if (typeof AudioContext !== 'undefined') {
convolver.fade = fade;
convolver.lp = lp;
convolver.dim = dim;
return convolver;
}
};
convolver.setIR = (d, fade, lp, dim, buf) => {