blob: 7b853f7e35b461c18f835a00a5a13190ff7081a7 [file] [log] [blame]
<!DOCTYPE html>
<!--
Test AudioBufferSourceNode supports 5.1 channel.
-->
<html>
<head>
<script type="text/javascript" src="resources/audio-testing.js"></script>
<script type="text/javascript" src="resources/mix-testing.js"></script>
</head>
<body>
<script>
function runTest() {
if (!window.testRunner)
return;
testRunner.waitUntilDone();
window.jsTestAsync = true;
// Create offline audio context
var sampleRate = 44100.0;
var context = new webkitOfflineAudioContext(6, sampleRate * toneLengthSeconds, sampleRate);
var toneBuffer = createToneBuffer(context, 440, toneLengthSeconds, 6);
var source = context.createBufferSource();
source.buffer = toneBuffer;
source.connect(context.destination);
source.noteOn(0);
context.oncomplete = finishAudioTest;
context.startRendering();
}
runTest();
</script>
</body>
</html>