summaryrefslogtreecommitdiffstats
path: root/dom/media/test/crashtests/analyser-channels-1.html
blob: 2f3133cf13ecbcbc6fc6437b8cfd6afa70699484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<html class="reftest-wait">
<script>
  var context = new window.OfflineAudioContext(1, 256, 48000);
  var analyser = context.createAnalyser();
  analyser.channelCount = 2;
  analyser.channelCountMode = "explicit";
  analyser.fftSize = 32;
  var source = context.createOscillator();
  source.connect(analyser);
  source.start(0);
  context.startRendering().
    then(function() {
      document.documentElement.removeAttribute("class");
    });
</script>