LibWeb: Add AudioParams for DynamicsCompressorNode

This commit is contained in:
Shannon Booth 2024-05-11 19:52:08 +12:00 committed by Andreas Kling
commit cf615cbd1c
Notes: sideshowbarker 2024-07-16 22:16:50 +09:00
5 changed files with 55 additions and 6 deletions

View file

@ -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>