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