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