summaryrefslogtreecommitdiffstats
path: root/dom/media/webaudio/test/blink/test_biquadFilterNodeLowPass.html
blob: dcea18551ab2f55b2b1186c962f2831c2f879978 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE HTML>
<html>
<head>
  <title>Test BiquadFilterNode Low Pass Filter</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<pre id="test">
<script src="audio-testing.js"></script>
<script src="biquad-filters.js"></script>
<script src="biquad-testing.js"></script>
<script src="webaudio.js" type="text/javascript"></script>
<script class="testbody" type="text/javascript">

SimpleTest.waitForExplicitFinish();

addLoadEvent(function() {
    // Create offline audio context.
    var context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);

    // The filters we want to test.
    var filterParameters = [{cutoff : 0,    q : 1, gain : 1 },
                            {cutoff : 1,    q : 1, gain : 1 },
                            {cutoff : 0.25, q : 1, gain : 1 },
                            {cutoff : 0.25, q : 1, gain : 1, detune : 100 },
                            {cutoff : 0.01, q : 1, gain : 1, detune : -200 },
                           ];
    createTestAndRun(context, "lowpass", filterParameters);
});
</script>
</pre>
</body>
</html>