bugfixes for parameter passing
This commit is contained in:
parent
abff279707
commit
e600b91a85
2 changed files with 7 additions and 9 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue