LibWeb: Implement BaseAudioContext.createDynamicsCompressor

This commit is contained in:
Shannon Booth 2024-05-05 11:18:02 +12:00 committed by Tim Flynn
commit 452ffa56dc
Notes: sideshowbarker 2024-07-17 00:25:35 +09:00
5 changed files with 31 additions and 1 deletions

View file

@ -0,0 +1,16 @@
<script src="../include.js"></script>
<script>
test(() => {
const audioContext = new OfflineAudioContext(1, 5000, 44100);
const compressor = audioContext.createDynamicsCompressor();
// Check prototype
let prototype = Object.getPrototypeOf(compressor);
while (prototype) {
println(prototype.constructor.name);
prototype = Object.getPrototypeOf(prototype);
}
});
</script>