a35b4e70397f35c2ad94fe3179dfdf556e14fd42
[WebKit-https.git] / LayoutTests / inspector-protocol / resources / audio-context.html
1 <html>
2 <script>
3
4 var sampleRate = 44100.0;
5 var renderLengthSeconds = 0.125;
6
7 // Create offline audio context.
8 var context = new webkitAudioContext(1, sampleRate * renderLengthSeconds, sampleRate);
9
10 // This call forces AudioContext lazy initialization.
11 var bufferSource = context.createBufferSource();
12
13 context.startRendering();
14
15 </script>
16 <body>
17 </body>
18 </html>