simplify createReverb
This commit is contained in:
parent
508af7eb72
commit
ce842f7561
2 changed files with 3 additions and 3 deletions
|
|
@ -112,7 +112,7 @@ function getReverb(orbit, duration = 2, fade, lp, dim) {
|
|||
// If no reverb has been created for a given orbit, create one
|
||||
if (!reverbs[orbit]) {
|
||||
const ac = getAudioContext();
|
||||
const reverb = ac.createReverb(getAudioContext(), duration, fade, lp, dim);
|
||||
const reverb = ac.createReverb(duration, fade, lp, dim);
|
||||
reverb.connect(getDestination());
|
||||
reverbs[orbit] = reverb;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue