fix: reverb regenerate loophole
This commit is contained in:
parent
0b888ac54d
commit
4718bfac25
2 changed files with 17 additions and 10 deletions
|
|
@ -4,7 +4,7 @@ if (typeof AudioContext !== 'undefined') {
|
|||
AudioContext.prototype.generateReverb = reverbGen.generateReverb;
|
||||
AudioContext.prototype.createReverb = function (duration, fade, lp, dim) {
|
||||
const convolver = this.createConvolver();
|
||||
convolver.generate = (d, fade, lp, dim) => {
|
||||
convolver.generate = (d = 2, fade = 0.1, lp = 15000, dim = 1000) => {
|
||||
this.generateReverb(
|
||||
{
|
||||
audioContext: this,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue