OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 | |
3 <html> | |
4 <head> | |
5 <script src="../resources/js-test.js"></script> | |
6 <script src="resources/compatibility.js"></script> | |
7 <script src="resources/audit-util.js"></script> | |
8 <script src="resources/audio-testing.js"></script> | |
9 <script src="resources/biquad-filters.js"></script> | |
10 <script src="resources/biquad-testing.js"></script> | |
11 </head> | |
12 | |
13 <body> | |
14 | |
15 <div id="description"></div> | |
16 <div id="console"></div> | |
17 | |
18 <script> | |
19 description("Tests Biquad lowpass filter."); | |
20 | |
21 function runTest() { | |
22 if (window.testRunner) { | |
23 testRunner.dumpAsText(); | |
24 testRunner.waitUntilDone(); | |
25 } | |
26 | |
27 window.jsTestIsAsync = true; | |
28 | |
29 // Create offline audio context. | |
30 var context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, s
ampleRate); | |
31 | |
32 // The filters we want to test. | |
33 var filterParameters = [{cutoff : 0, q : 1, gain : 1 }, | |
34 {cutoff : 1, q : 1, gain : 1 }, | |
35 {cutoff : 0.25, q : 1, gain : 1 }, | |
36 {cutoff : 0.25, q : 1, gain : 1, detune : 100 }, | |
37 {cutoff : 0.01, q : 1, gain : 1, detune : -200 }, | |
38 ]; | |
39 | |
40 createTestAndRun(context, "lowpass", { | |
41 threshold: 9.7869e-8, | |
42 filterParameters: filterParameters | |
43 }); | |
44 } | |
45 | |
46 runTest(); | |
47 successfullyParsed = true; | |
48 | |
49 </script> | |
50 | |
51 </body> | |
52 </html> | |
OLD | NEW |