Merge branch 'main' into glossing/lfo-anything
This commit is contained in:
commit
b6264a1513
10 changed files with 340 additions and 20 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue