| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <!-- | 3 <!-- |
| 4 Tests that an audio-rate signal (AudioNode output) can be connected to an AudioP
aram. | 4 Tests that an audio-rate signal (AudioNode output) can be connected to an AudioP
aram. |
| 5 Specifically, this tests that an audio-rate signal coming from an AudioBufferSou
rceNode | 5 Specifically, this tests that an audio-rate signal coming from an AudioBufferSou
rceNode |
| 6 playing an AudioBuffer containing a specific curve can be connected to an AudioG
ainNode's | 6 playing an AudioBuffer containing a specific curve can be connected to an AudioG
ainNode's |
| 7 .gain attribute (an AudioParam). Another AudioBufferSourceNode will be the audi
o source | 7 .gain attribute (an AudioParam). Another AudioBufferSourceNode will be the audi
o source |
| 8 having its gain changed. We load this one with an AudioBuffer containing a cons
tant value of 1. | 8 having its gain changed. We load this one with an AudioBuffer containing a cons
tant value of 1. |
| 9 Thus it's easy to check that the resultant signal should be equal to the gain-sc
aling curve. | 9 Thus it's easy to check that the resultant signal should be equal to the gain-sc
aling curve. |
| 10 --> | 10 --> |
| 11 | 11 |
| 12 <html> | 12 <html> |
| 13 <head> | 13 <head> |
| 14 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css"/> | |
| 15 <script src="resources/audio-testing.js"></script> | 14 <script src="resources/audio-testing.js"></script> |
| 16 <script src="../fast/js/resources/js-test-pre.js"></script> | 15 <script src="../fast/js/resources/js-test-pre.js"></script> |
| 17 | 16 |
| 18 </head> | 17 </head> |
| 19 <body> | 18 <body> |
| 20 | 19 |
| 21 <script> | 20 <script> |
| 22 | 21 |
| 23 var sampleRate = 44100.0; | 22 var sampleRate = 44100.0; |
| 24 var lengthInSeconds = 1; | 23 var lengthInSeconds = 1; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 context.startRendering(); | 105 context.startRendering(); |
| 107 } | 106 } |
| 108 | 107 |
| 109 runTest(); | 108 runTest(); |
| 110 successfullyParsed = true; | 109 successfullyParsed = true; |
| 111 | 110 |
| 112 </script> | 111 </script> |
| 113 | 112 |
| 114 </body> | 113 </body> |
| 115 </html> | 114 </html> |
| OLD | NEW |