This commit is contained in:
Jade (Rose) Rowland 2025-07-24 23:50:27 -04:00
parent ab12c6ae0a
commit fb7d76a2ab
5 changed files with 97 additions and 5 deletions

View file

@ -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];