blob: a821ef60b0766bdc08d511f038beae37ce7eff4d [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../resources/js-test-pre.js"></script>
<script type="text/javascript" src="resources/audio-testing.js"></script>
<script type="text/javascript" src="resources/mix-testing.js"></script>
<script type="text/javascript" src="resources/waveshaper-testing.js"></script>
</head>
<body>
<div id="description"></div>
<div id="console"></div>
<script>
description("Tests 4x WaveShaperNode oversampling.");
var testParams = {
"sampleRate": 44100,
"oversample": "4x",
// Should generate harmonics at 18000, 36000, 54000, 72000
// All except for 18000 should be filtered out with the 4x oversampling.
"fundamentalFrequency": 18000,
"acceptableAliasingThresholdDecibels": -85
};
runWaveShaperOversamplingTest(testParams);
</script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>