improve scope memory footprint
This commit is contained in:
parent
cdc200e1da
commit
16506c5ae2
3 changed files with 26 additions and 18 deletions
|
|
@ -220,6 +220,7 @@ export let analysers = {},
|
|||
|
||||
export function getAnalyserById(id, fftSize = 1024) {
|
||||
if (!analysers[id]) {
|
||||
// make sure this doesn't happen too often as it piles up garbage
|
||||
const analyserNode = getAudioContext().createAnalyser();
|
||||
analyserNode.fftSize = fftSize;
|
||||
// getDestination().connect(analyserNode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue