OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <script src="resources/compatibility.js"></script> | 5 <script src="resources/compatibility.js"></script> |
6 <script src="resources/audio-testing.js"></script> | 6 <script src="resources/audio-testing.js"></script> |
7 <script src="../resources/js-test.js"></script> | 7 <script src="../resources/js-test.js"></script> |
8 <script src="resources/biquad-filters.js"></script> | 8 <script src="resources/biquad-filters.js"></script> |
9 <script src="resources/biquad-testing.js"></script> | 9 <script src="resources/biquad-testing.js"></script> |
10 </head> | 10 </head> |
(...skipping 15 matching lines...) Expand all Loading... |
26 window.jsTestIsAsync = true; | 26 window.jsTestIsAsync = true; |
27 | 27 |
28 // Create offline audio context. | 28 // Create offline audio context. |
29 var context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, s
ampleRate); | 29 var context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, s
ampleRate); |
30 | 30 |
31 var filterParameters = [{cutoff : 0, q : 10, gain : 1 }, | 31 var filterParameters = [{cutoff : 0, q : 10, gain : 1 }, |
32 {cutoff : 1, q : 10, gain : 1 }, | 32 {cutoff : 1, q : 10, gain : 1 }, |
33 {cutoff : .5, q : 0, gain : 1 }, | 33 {cutoff : .5, q : 0, gain : 1 }, |
34 {cutoff : 0.25, q : 10, gain : 1 }, | 34 {cutoff : 0.25, q : 10, gain : 1 }, |
35 ]; | 35 ]; |
36 createTestAndRun(context, "allpass", filterParameters); | 36 createTestAndRun(context, "allpass", { |
| 37 threshold: 3.9337e-8, |
| 38 filterParameters: filterParameters |
| 39 }); |
37 } | 40 } |
38 | 41 |
39 runTest(); | 42 runTest(); |
40 successfullyParsed = true; | 43 successfullyParsed = true; |
41 | 44 |
42 </script> | 45 </script> |
43 | 46 |
44 </body> | 47 </body> |
45 </html> | 48 </html> |
OLD | NEW |