1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css"/>
5 <script src="resources/audio-testing.js"></script>
6 <script src="../fast/js/resources/js-test-pre.js"></script>
7 <script src="resources/panner-model-testing.js"></script>
11 <div id="description"></div>
12 <div id="console"></div>
15 description("Test equal-power panner model of AudioPannerNode.");
17 // To test the panner, we create a number of panner nodes
18 // equally spaced on a semicircle at unit distance. The
19 // semicircle covers the azimuth range from -90 to 90 deg,
20 // covering full left to full right. Each source is an impulse
21 // turning at a different time and we check that the rendered
22 // impulse has the expected gain.
24 if (window.testRunner) {
25 testRunner.dumpAsText();
26 testRunner.waitUntilDone();
29 window.jsTestIsAsync = true;
31 // Create offline audio context.
32 context = new webkitOfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
34 createTestAndRun(context, nodesToCreate, 1);
38 successfullyParsed = true;
42 <script src="../fast/js/resources/js-test-post.js"></script>