mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
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:
committed by
Jelle Raaijmakers
parent
97d7316254
commit
96b142e10b
Notes:
github-actions[bot]
2025-08-20 12:52:14 +00:00
Author: https://github.com/Prospero23 Commit: https://github.com/LadybirdBrowser/ladybird/commit/96b142e10b6 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5428 Reviewed-by: https://github.com/gmta ✅
11
Tests/LibWeb/Text/input/WebAudio/OfflineAudioContext.html
Normal file
11
Tests/LibWeb/Text/input/WebAudio/OfflineAudioContext.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
|
||||
// Once the ctor‑offlineaudiocontext 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>
|
||||
Reference in New Issue
Block a user