| 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 16 matching lines...) Expand all Loading... |
| 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 // The filters we want to test. | 31 // The filters we want to test. |
| 32 var filterParameters = [{cutoff : 0, q : 1, gain : 1 }, | 32 var filterParameters = [{cutoff : 0, q : 1, gain : 1 }, |
| 33 {cutoff : 1, q : 1, gain : 1 }, | 33 {cutoff : 1, q : 1, gain : 1 }, |
| 34 {cutoff : 0.25, q : 1, gain : 1 }, | 34 {cutoff : 0.25, q : 1, gain : 1 }, |
| 35 ]; | 35 ]; |
| 36 | 36 |
| 37 createTestAndRun(context, "highpass", filterParameters); | 37 createTestAndRun(context, "highpass", { |
| 38 threshold: 1.5487e-8, |
| 39 filterParameters: filterParameters |
| 40 }); |
| 38 } | 41 } |
| 39 | 42 |
| 40 runTest(); | 43 runTest(); |
| 41 successfullyParsed = true; | 44 successfullyParsed = true; |
| 42 | 45 |
| 43 </script> | 46 </script> |
| 44 | 47 |
| 45 </body> | 48 </body> |
| 46 </html> | 49 </html> |
| OLD | NEW |