| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <!-- | 3 <!-- |
| 4 Tests that GainNode is properly scaling the gain. | 4 Tests that GainNode is properly scaling the gain. |
| 5 We'll render 11 notes, starting at a gain of 1.0, decreasing in gain by 0.1. | 5 We'll render 11 notes, starting at a gain of 1.0, decreasing in gain by 0.1. |
| 6 The 11th note will be of gain 0.0, so it should be silent (at the end in the ren
dered output). | 6 The 11th note will be of gain 0.0, so it should be silent (at the end in the ren
dered output). |
| 7 --> | 7 --> |
| 8 | 8 |
| 9 <html> | 9 <html> |
| 10 <head> | 10 <head> |
| 11 <script type="text/javascript" src="resources/audio-testing.js"></script> | 11 <script src="resources/audit-util.js"></script> |
| 12 <script src="resources/audio-testing.js"></script> |
| 12 | 13 |
| 13 </head> | 14 </head> |
| 14 <body> | 15 <body> |
| 15 | 16 |
| 16 <script> | 17 <script> |
| 17 | 18 |
| 18 window.onload = init; | 19 window.onload = init; |
| 19 | 20 |
| 20 var sampleRate = 44100.0; | 21 var sampleRate = 44100.0; |
| 21 var bufferDurationSeconds = 0.125; | 22 var bufferDurationSeconds = 0.125; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 context.oncomplete = finishAudioTest; | 76 context.oncomplete = finishAudioTest; |
| 76 context.startRendering(); | 77 context.startRendering(); |
| 77 | 78 |
| 78 testRunner.waitUntilDone(); | 79 testRunner.waitUntilDone(); |
| 79 } | 80 } |
| 80 | 81 |
| 81 </script> | 82 </script> |
| 82 | 83 |
| 83 </body> | 84 </body> |
| 84 </html> | 85 </html> |
| OLD | NEW |