blob: 5f5980983cf2e2027d7158194da639bb361070f9 [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 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="../resources/js-test-post.js"></script>
</body>
</html>