LibWeb/WebAudio: Add renderQuantumSize

Adds this attribute to BaseAudioContext.idl and adds associated test for
OfflineAudioContext. This gives a set value that can be used to start
implementing OfflineAudioContext::start_rendering(). Updates idlharness
test to account for now implemented renderQuantumSize.
This commit is contained in:
Ben Eidson
2025-07-13 16:57:07 -04:00
committed by Jelle Raaijmakers
parent 97d7316254
commit 96b142e10b
Notes: github-actions[bot] 2025-08-20 12:52:14 +00:00
5 changed files with 23 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
// Once the ctorofflineaudiocontext WPT test is updated to check
// renderQuantumSize and renderSizeHint, this test is not needed.
test(() => {
const audioContext = new OfflineAudioContext(1, 1, 44100)
println(`${audioContext.renderQuantumSize}`);
});
</script>