1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00
ladybird/Tests/LibWeb/Text/input/WebAudio/GainNode.html
2024-05-28 08:06:09 +02:00

23 lines
696 B
HTML

<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);
const node = audioContext.createGain();
// Check prototype
let prototype = Object.getPrototypeOf(node);
while (prototype) {
println(prototype.constructor.name);
prototype = Object.getPrototypeOf(prototype);
}
// Audio Params
dumpAudioParam(node.gain);
});
</script>