Generates a synthetic impulse response: exponentially-decaying white noise.
Pure (aside from the ctx.createBuffer allocation) so it can be unit-tested
with a minimal mock context. random defaults to Math.random and can
be injected for deterministic tests.
Generates a synthetic impulse response: exponentially-decaying white noise. Pure (aside from the
ctx.createBufferallocation) so it can be unit-tested with a minimal mock context.randomdefaults to Math.random and can be injected for deterministic tests.