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 lowshelf 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 : 10, gain : 10 }, | |
34 {cutoff : 1, q : 10, gain : 10 }, | |
35 {cutoff : 0.25, q : 10, gain : 10 }, | |
36 ]; | |
37 | |
38 createTestAndRun(context, "lowshelf", { | |
39 threshold: 3.8349e-8, | |
40 filterParameters: filterParameters | |
41 }); | |
42 } | |
43 | |
44 runTest(); | |
45 successfullyParsed = true; | |
46 | |
47 </script> | |
48 | |
49 </body> | |
50 </html> | |
OLD | NEW |