<!DOCTYPE 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 compressor = audioContext.createDynamicsCompressor();

        // Check prototype
        let prototype = Object.getPrototypeOf(compressor)