<!DOCTYPE html>
<html>
  <head>
    <title>
      waveshaper-oversample-2x.html
    </title>
    <script src="../../imported/w3c/web-platform-tests/resources/testharness.js"></script>
    <script src="../../resources/testharnessreport.js"></script>
    <script src="../resources/audit-util.js"></script>
    <script src="../resources/audit.js"></script>
    <script src="../resources/mix-testing.js"></script>
    <script src="../resources/waveshaper-testing.js"></script>
  </head>
  <body>
    <script id="layout-test-code">
      let 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,
        description: '2x WaveShaperNode oversampling'
      };
      runWaveShaperOversamplingTest(testParams);
    </script>
  </body>
</html>
