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