| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <!-- | 3 <!-- |
| 4 See if we can load an AudioBuffer, create an AudioBufferSourceNode, attach the b
uffer to it, then play it. | 4 See if we can load an AudioBuffer, create an AudioBufferSourceNode, attach the b
uffer to it, then play it. |
| 5 --> | 5 --> |
| 6 | 6 |
| 7 <html> | 7 <html> |
| 8 <head> | 8 <head> |
| 9 <script type="text/javascript" src="resources/audio-testing.js"></script> | 9 <script src="resources/audit-util.js"></script> |
| 10 <script src="resources/audio-testing.js"></script> |
| 10 <script type="text/javascript" src="resources/buffer-loader.js"></script> | 11 <script type="text/javascript" src="resources/buffer-loader.js"></script> |
| 11 | 12 |
| 12 <script> | 13 <script> |
| 13 | 14 |
| 14 window.onload = init; | 15 window.onload = init; |
| 15 | 16 |
| 16 var sampleRate = 44100.0; | 17 var sampleRate = 44100.0; |
| 17 var lengthInSeconds = 2; | 18 var lengthInSeconds = 2; |
| 18 | 19 |
| 19 var context = 0; | 20 var context = 0; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 47 | 48 |
| 48 context.oncomplete = finishAudioTest; | 49 context.oncomplete = finishAudioTest; |
| 49 context.startRendering(); | 50 context.startRendering(); |
| 50 } | 51 } |
| 51 | 52 |
| 52 </script> | 53 </script> |
| 53 </head> | 54 </head> |
| 54 <body> | 55 <body> |
| 55 </body> | 56 </body> |
| 56 </html> | 57 </html> |
| OLD | NEW |