Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / webaudio / audiobuffersource-multi-channels.html
1 <!DOCTYPE html>
2
3 <!--
4 Test AudioBufferSourceNode supports 5.1 channel.
5 -->
6
7 <html>
8 <head>
9 <script type="text/javascript" src="resources/audio-testing.js"></script>
10 <script type="text/javascript" src="resources/mix-testing.js"></script>
11 </head>
12 <body>
13
14 <script>
15
16 function runTest() {
17     if (!window.testRunner)
18         return;
19
20     testRunner.waitUntilDone();
21
22     window.jsTestAsync = true;
23
24     // Create offline audio context
25     var sampleRate = 44100.0;
26     var context = new webkitOfflineAudioContext(6, sampleRate * toneLengthSeconds, sampleRate);
27     var toneBuffer = createToneBuffer(context, 440, toneLengthSeconds, 6); 
28
29     var source = context.createBufferSource();
30     source.buffer = toneBuffer;
31
32     source.connect(context.destination);
33     source.start(0);
34
35     context.oncomplete = finishAudioTest;
36     context.startRendering();
37 }
38
39 runTest();
40 </script>
41
42 </body>
43 </html>