| 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 17 matching lines...) Expand all Loading... |
| 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 {cutoff : 0.25, q : 1, gain : 1, detune : 100 }, | 35 {cutoff : 0.25, q : 1, gain : 1, detune : 100 }, |
| 36 {cutoff : 0.01, q : 1, gain : 1, detune : -200 }, | 36 {cutoff : 0.01, q : 1, gain : 1, detune : -200 }, |
| 37 ]; | 37 ]; |
| 38 createTestAndRun(context, "lowpass", filterParameters); | 38 |
| 39 createTestAndRun(context, "lowpass", { |
| 40 threshold: 9.7869e-8, |
| 41 filterParameters: filterParameters |
| 42 }); |
| 39 } | 43 } |
| 40 | 44 |
| 41 runTest(); | 45 runTest(); |
| 42 successfullyParsed = true; | 46 successfullyParsed = true; |
| 43 | 47 |
| 44 </script> | 48 </script> |
| 45 | 49 |
| 46 </body> | 50 </body> |
| 47 </html> | 51 </html> |
| OLD | NEW |