mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
LibWeb: Add AudioParams for DynamicsCompressorNode
This commit is contained in:
parent
8fa7b2c173
commit
cf615cbd1c
Notes:
sideshowbarker
2024-07-16 22:16:50 +09:00
Author: https://github.com/shannonbooth
Commit: cf615cbd1c
Pull-request: https://github.com/SerenityOS/serenity/pull/24351
5 changed files with 55 additions and 6 deletions
|
@ -1,5 +1,9 @@
|
|||
<script src="../include.js"></script>
|
||||
<script>
|
||||
function dumpAudioParam(param) {
|
||||
println(`${param} current: ${param.value}, default: ${param.defaultValue}, min: ${param.minValue}, max: ${param.maxValue}, rate: ${param.automationRate}`);
|
||||
}
|
||||
|
||||
test(() => {
|
||||
const audioContext = new OfflineAudioContext(1, 5000, 44100);
|
||||
|
||||
|
@ -12,5 +16,12 @@
|
|||
println(prototype.constructor.name);
|
||||
prototype = Object.getPrototypeOf(prototype);
|
||||
}
|
||||
|
||||
// Audio Params
|
||||
dumpAudioParam(compressor.threshold);
|
||||
dumpAudioParam(compressor.knee);
|
||||
dumpAudioParam(compressor.ratio);
|
||||
dumpAudioParam(compressor.attack);
|
||||
dumpAudioParam(compressor.release);
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue