blob: 49324e0baf1de9463a0964e1e1a5f212262f8db8 [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 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": -79.9
};
runWaveShaperOversamplingTest(testParams);
</script>
</body>
</html>