codeformat

This commit is contained in:
Felix Roos 2023-10-01 23:20:05 +02:00
parent 1909caf769
commit 6ca99e33ab
4 changed files with 24 additions and 45 deletions

View file

@ -2,13 +2,7 @@ import reverbGen from './reverbGen.mjs';
if (typeof AudioContext !== 'undefined') {
AudioContext.prototype.generateReverb = reverbGen.generateReverb;
AudioContext.prototype.createReverb = function(
audioContext,
duration,
fade,
revlp,
revdim
) {
AudioContext.prototype.createReverb = function (audioContext, duration, fade, revlp, revdim) {
const convolver = this.createConvolver();
convolver.setDuration = (d, fade, revlp, revdim) => {
this.generateReverb(
@ -23,7 +17,7 @@ if (typeof AudioContext !== 'undefined') {
},
(buffer) => {
convolver.buffer = buffer;
}
},
);
convolver.duration = d;
convolver.fade = fade;