| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <script src="../../resources/js-test.js"></script> | 5 <script src="../../resources/testharness.js"></script> |
| 6 <script src="../../resources/testharnessreport.js"></script> |
| 6 <script src="../resources/audit-util.js"></script> | 7 <script src="../resources/audit-util.js"></script> |
| 7 <script src="../resources/audio-testing.js"></script> | 8 <script src="../resources/audit.js"></script> |
| 8 <script type="text/javascript" src="../resources/mix-testing.js"></script> | 9 <script type="text/javascript" src="../resources/mix-testing.js"></script> |
| 9 <script type="text/javascript" src="../resources/waveshaper-testing.js"></script
> | 10 <script type="text/javascript" src="../resources/waveshaper-testing.js"></script
> |
| 10 </head> | 11 </head> |
| 11 | 12 |
| 12 <body> | 13 <body> |
| 13 | |
| 14 <div id="description"></div> | |
| 15 <div id="console"></div> | |
| 16 | |
| 17 <script> | 14 <script> |
| 18 description("Tests 4x WaveShaperNode oversampling."); | |
| 19 | |
| 20 var testParams = { | 15 var testParams = { |
| 21 "sampleRate": 44100, | 16 "sampleRate": 44100, |
| 22 "oversample": "4x", | 17 "oversample": "4x", |
| 23 | 18 |
| 24 // Should generate harmonics at 18000, 36000, 54000, 72000 | 19 // Should generate harmonics at 18000, 36000, 54000, 72000 |
| 25 // All except for 18000 should be filtered out with the 4x oversampling. | 20 // All except for 18000 should be filtered out with the 4x oversampling. |
| 26 "fundamentalFrequency": 18000, | 21 "fundamentalFrequency": 18000, |
| 27 "acceptableAliasingThresholdDecibels": -79.9 | 22 "acceptableAliasingThresholdDecibels": -79.9, |
| 23 description: "4x WaveShaperNode oversampling" |
| 28 }; | 24 }; |
| 29 runWaveShaperOversamplingTest(testParams); | 25 runWaveShaperOversamplingTest(testParams); |
| 30 | 26 |
| 31 </script> | 27 </script> |
| 32 | 28 |
| 33 </body> | 29 </body> |
| 34 </html> | 30 </html> |
| OLD | NEW |