LibWeb: Initialize AnalyserNode previous block at construction time

This commit is contained in:
Tim Ledbetter 2025-02-13 18:32:30 +00:00 committed by Luke Wilde
commit 4bb22c52d1
Notes: github-actions[bot] 2025-02-13 20:32:32 +00:00
2 changed files with 9 additions and 4 deletions

View file

@ -0,0 +1,7 @@
<!DOCTYPE html>
<script>
const context = new OfflineAudioContext(1, 1, 44100)
const analyser = context.createAnalyser()
const dataArray = new Float32Array(analyser.frequencyBinCount)
analyser.getFloatFrequencyData(dataArray);
</script>