blob: 189046a041c1ed7fb4ae42059bf1f5b8d37ad58d [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<link rel="stylesheet" href="../fast/js/resources/js-test-style.css"/>
<script src="resources/audio-testing.js"></script>
<script src="../fast/js/resources/js-test-pre.js"></script>
<script src="resources/panner-model-testing.js"></script>
<div id="description"></div>
<div id="console"></div>
description("Test equal-power panner model of AudioPannerNode.");
// To test the panner, we create a number of panner nodes
// equally spaced on a semicircle at unit distance. The
// semicircle covers the azimuth range from -90 to 90 deg,
// covering full left to full right. Each source is an impulse
// turning at a different time and we check that the rendered
// impulse has the expected gain.
function runTest() {
if (window.testRunner) {
window.jsTestIsAsync = true;
// Create offline audio context.
context = new webkitOfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
createTestAndRun(context, nodesToCreate, 1);
successfullyParsed = true;
<script src="../fast/js/resources/js-test-post.js"></script>