Merge branch 'main' into glossing/lfo-anything

This commit is contained in:
Aria 2025-12-29 20:00:29 +01:00
commit b6264a1513
10 changed files with 340 additions and 20 deletions

View file

@ -361,7 +361,7 @@ export let analysers = {},
analysersData = {};
export function getAnalyserById(id, fftSize = 1024, smoothingTimeConstant = 0.5) {
if (!analysers[id] || analysers[id].audioContext != getAudioContext()) {
if (!analysers[id] || analysers[id].context != getAudioContext()) {
// make sure this doesn't happen too often as it piles up garbage
const analyserNode = getAudioContext().createAnalyser();
analyserNode.fftSize = fftSize;