bugfixes for parameter passing

This commit is contained in:
Raphael Forment 2023-10-01 12:02:17 +02:00
parent abff279707
commit e600b91a85
2 changed files with 7 additions and 9 deletions

View file

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