| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 | |
| 3 <!-- | |
| 4 Test AudioBufferSourceNode supports 5.1 channel. | |
| 5 --> | |
| 6 | |
| 7 <html> | |
| 8 <head> | |
| 9 <script src="resources/audit-util.js"></script> | |
| 10 <script src="resources/audio-testing.js"></script> | |
| 11 <script type="text/javascript" src="resources/mix-testing.js"></script> | |
| 12 </head> | |
| 13 <body> | |
| 14 | |
| 15 <script> | |
| 16 | |
| 17 function runTest() { | |
| 18 if (!window.testRunner) | |
| 19 return; | |
| 20 | |
| 21 testRunner.waitUntilDone(); | |
| 22 | |
| 23 window.jsTestAsync = true; | |
| 24 | |
| 25 // Create offline audio context | |
| 26 var sampleRate = 44100.0; | |
| 27 var context = new OfflineAudioContext(6, sampleRate * toneLengthSeconds, sam
pleRate); | |
| 28 var toneBuffer = createToneBuffer(context, 440, toneLengthSeconds, 6); | |
| 29 | |
| 30 var source = context.createBufferSource(); | |
| 31 source.buffer = toneBuffer; | |
| 32 | |
| 33 source.connect(context.destination); | |
| 34 source.start(0); | |
| 35 | |
| 36 context.oncomplete = finishAudioTest; | |
| 37 context.startRendering(); | |
| 38 } | |
| 39 | |
| 40 runTest(); | |
| 41 </script> | |
| 42 | |
| 43 </body> | |
| 44 </html> | |
| OLD | NEW |