| 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/js-test.js"></script> |
| 6 <script src="resources/compatibility.js"></script> | 6 <script src="resources/compatibility.js"></script> |
| 7 <script type="text/javascript" src="resources/audio-testing.js"></script> | 7 <script src="resources/audit-util.js"></script> |
| 8 <script src="resources/audio-testing.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 |
| 14 <div id="description"></div> | 15 <div id="description"></div> |
| 15 <div id="console"></div> | 16 <div id="console"></div> |
| 16 | 17 |
| 17 <script> | 18 <script> |
| 18 description("Tests 2x WaveShaperNode oversampling."); | 19 description("Tests 2x WaveShaperNode oversampling."); |
| 19 | 20 |
| 20 var testParams = { | 21 var testParams = { |
| 21 "sampleRate": 44100, | 22 "sampleRate": 44100, |
| 22 "oversample": "2x", | 23 "oversample": "2x", |
| 23 | 24 |
| 24 // Should generate harmonics at 9000, 18000, 27000, 36000 | 25 // Should generate harmonics at 9000, 18000, 27000, 36000 |
| 25 // The last two should be filtered out with the 2x oversampling. | 26 // The last two should be filtered out with the 2x oversampling. |
| 26 "fundamentalFrequency": 9000, | 27 "fundamentalFrequency": 9000, |
| 27 "acceptableAliasingThresholdDecibels": -75.3 | 28 "acceptableAliasingThresholdDecibels": -75.3 |
| 28 }; | 29 }; |
| 29 runWaveShaperOversamplingTest(testParams); | 30 runWaveShaperOversamplingTest(testParams); |
| 30 | 31 |
| 31 </script> | 32 </script> |
| 32 | 33 |
| 33 </body> | 34 </body> |
| 34 </html> | 35 </html> |
| OLD | NEW |