mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibWeb: Clamp AudioParam's value between min and max
The spec isn't _super_ clear on how this is meant to be done, but the way I understand this is that we should simply clamp the returned 'current value' between 'min' and 'max'. Firefox does not appear to do this clamping, but Chrome does.
This commit is contained in:
committed by
Andreas Kling
parent
e2b5ff2450
commit
94354ea7fb
Notes:
sideshowbarker
2024-07-17 02:39:10 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/94354ea7fb Pull-request: https://github.com/SerenityOS/serenity/pull/24195
@@ -42,5 +42,9 @@
|
||||
dumpAudioParam(frequency);
|
||||
frequency.value = -52;
|
||||
dumpAudioParam(frequency);
|
||||
frequency.value = 100_000;
|
||||
dumpAudioParam(frequency);
|
||||
frequency.value = -22051;
|
||||
dumpAudioParam(frequency);
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user