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