blob: 9946468cb46505b706f122a97a67a08a95041b5b [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../resources/js-test.js"></script>
<script src="resources/compatibility.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": -75.3
};
runWaveShaperOversamplingTest(testParams);
</script>
</body>
</html>