Fixed Some Issues

This commit is contained in:
meowarex
2025-06-11 02:57:18 +10:00
parent 76644bde1c
commit c2e271cc8c
2 changed files with 18 additions and 7 deletions
+1 -3
View File
@@ -390,9 +390,7 @@ const updateAudioVisualizer = (): void => {
// use a fixed size that provides enough frequency bins
analyser.fftSize = 512; // Fixed power of 2 - important
analyser.smoothingTimeConstant = config.smoothing;
if (dataArray) {
dataArray = new Uint8Array(analyser.frequencyBinCount);
}
dataArray = new Uint8Array(analyser.frequencyBinCount);
}
if (canvas) {