codeformat
This commit is contained in:
parent
1909caf769
commit
6ca99e33ab
4 changed files with 24 additions and 45 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue