4 Test up mixing from mono to 5.1.
9 <script type=
"text/javascript" src=
"resources/audio-testing.js"></script>
10 <script type=
"text/javascript" src=
"resources/mix-testing.js"></script>
17 if (!window
.testRunner
)
20 testRunner
.waitUntilDone();
22 window
.jsTestAsync
= true;
24 // Create offline audio context
25 var sampleRate
= 44100.0;
26 var context
= new OfflineAudioContext(6, sampleRate
* toneLengthSeconds
, sampleRate
);
27 var toneBuffer
= createToneBuffer(context
, 440, toneLengthSeconds
, 1);
29 var source
= context
.createBufferSource();
30 source
.buffer
= toneBuffer
;
32 source
.connect(context
.destination
);
35 context
.oncomplete
= finishAudioTest
;
36 context
.startRendering();