working
This commit is contained in:
parent
ab12c6ae0a
commit
fb7d76a2ab
5 changed files with 97 additions and 5 deletions
|
|
@ -4,7 +4,7 @@ import { getAudioContext } from './superdough.mjs';
|
|||
let noiseCache = {};
|
||||
|
||||
// lazy generates noise buffers and keeps them forever
|
||||
function getNoiseBuffer(type, density) {
|
||||
export function getNoiseBuffer(type, density) {
|
||||
const ac = getAudioContext();
|
||||
if (noiseCache[type]) {
|
||||
return noiseCache[type];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue