| OLD | NEW |
| 1 <!doctype html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Test Convolver Channel Outputs for Response with 2 channels</title> | 4 <title> |
| 5 Test Convolver Channel Outputs for Response with 2 channels |
| 6 </title> |
| 5 <script src="../../resources/testharness.js"></script> | 7 <script src="../../resources/testharness.js"></script> |
| 6 <script src="../../resources/testharnessreport.js"></script> | 8 <script src="../../resources/testharnessreport.js"></script> |
| 7 <script src="../resources/audit-util.js"></script> | 9 <script src="../resources/audit-util.js"></script> |
| 8 <script src="../resources/audit.js"></script> | 10 <script src="../resources/audit.js"></script> |
| 9 </head> | 11 </head> |
| 10 | |
| 11 <body> | 12 <body> |
| 12 <script> | 13 <script id="layout-test-code"> |
| 13 // Test various convolver configurations when the convolver response has | 14 // Test various convolver configurations when the convolver response has |
| 14 // a stereo response. | 15 // a stereo response. |
| 15 | 16 |
| 16 // Fairly arbitrary sample rate, except that we want the rate to be a | 17 // Fairly arbitrary sample rate, except that we want the rate to be a |
| 17 // power of two so that 1/sampleRate is exactly respresentable as a | 18 // power of two so that 1/sampleRate is exactly respresentable as a |
| 18 // single-precision float. | 19 // single-precision float. |
| 19 let sampleRate = 8192; | 20 let sampleRate = 8192; |
| 20 | 21 |
| 21 // A fairly arbitrary number of frames, except the number of frames should | 22 // A fairly arbitrary number of frames, except the number of frames should |
| 22 // be more than a few render quanta. | 23 // be more than a few render quanta. |
| 23 let renderFrames = 10 * 128; | 24 let renderFrames = 10 * 128; |
| 24 | 25 |
| 25 let audit = Audit.createTaskRunner(); | 26 let audit = Audit.createTaskRunner(); |
| 26 | 27 |
| 27 // Convolver response | 28 // Convolver response |
| 28 let response; | 29 let response; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 .beEqualToArray(expected0); | 190 .beEqualToArray(expected0); |
| 190 should(actual1, options.prefix + ': Channel 1') | 191 should(actual1, options.prefix + ': Channel 1') |
| 191 .beEqualToArray(expected1); | 192 .beEqualToArray(expected1); |
| 192 }); | 193 }); |
| 193 } | 194 } |
| 194 | 195 |
| 195 audit.run(); | 196 audit.run(); |
| 196 </script> | 197 </script> |
| 197 </body> | 198 </body> |
| 198 </html> | 199 </html> |
| OLD | NEW |