Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (31 sloc) 888 Bytes
<!DOCTYPE html>
<!--
Test up mixing from mono to stereo.
-->
<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(2, sampleRate * toneLengthSeconds, sampleRate);
var toneBuffer = createToneBuffer(context, 440, toneLengthSeconds, 1);
var source = context.createBufferSource();
source.buffer = toneBuffer;
source.connect(context.destination);
source.noteOn(0);
context.oncomplete = finishAudioTest;
context.startRendering();
}
runTest();
</script>
</body>
</html>
Something went wrong with that request. Please try again.