This commit is contained in:
Felix Roos 2022-09-25 20:08:02 +02:00
parent c5342d3eb0
commit 5018669ded
3 changed files with 12 additions and 4 deletions

View file

@ -11,8 +11,9 @@ if (typeof AudioContext !== 'undefined') {
const convolver = this.createConvolver();
convolver.setDuration = (d) => {
convolver.buffer = this.impulseResponse(d);
convolver.duration = duration;
return convolver;
};
this.duration = duration;
convolver.setDuration(duration);
return convolver;
};