blob: 46bc6c0452438390dcf5dcbc1eb44d5f8d4d9b7e [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../fast/js/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 2x WaveShaperNode oversampling.");
var testParams = {
"sampleRate": 44100,
"oversample": "2x",
// Should generate harmonics at 9000, 18000, 27000, 36000
// The last two should be filtered out with the 2x oversampling.
"fundamentalFrequency": 9000,
"acceptableAliasingThresholdDecibels": -85
};
runWaveShaperOversamplingTest(testParams);
</script>
<script src="../fast/js/resources/js-test-post.js"></script>
</body>
</html>