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 src="resources/audit-util.js"></script> | 11 <script src="../resources/audit-util.js"></script> |
12 <script src="resources/audio-testing.js"></script> | 12 <script src="../resources/audio-testing.js"></script> |
13 | 13 |
14 </head> | 14 </head> |
15 <body> | 15 <body> |
16 | 16 |
17 <script> | 17 <script> |
18 | 18 |
19 window.onload = init; | 19 window.onload = init; |
20 | 20 |
21 var sampleRate = 44100.0; | 21 var sampleRate = 44100.0; |
22 var bufferDurationSeconds = 0.125; | 22 var bufferDurationSeconds = 0.125; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 context.oncomplete = finishAudioTest; | 76 context.oncomplete = finishAudioTest; |
77 context.startRendering(); | 77 context.startRendering(); |
78 | 78 |
79 testRunner.waitUntilDone(); | 79 testRunner.waitUntilDone(); |
80 } | 80 } |
81 | 81 |
82 </script> | 82 </script> |
83 | 83 |
84 </body> | 84 </body> |
85 </html> | 85 </html> |
OLD | NEW |