commit-queue@webkit.org | edaf075 | 2012-02-02 20:46:43 +0000 | [diff] [blame] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
commit-queue@webkit.org | edaf075 | 2012-02-02 20:46:43 +0000 | [diff] [blame] | 4 | <script src="resources/audio-testing.js"></script> |
ap@apple.com | c8e7c72 | 2017-05-22 20:49:12 +0000 | [diff] [blame] | 5 | <script src="../resources/js-test.js"></script> |
commit-queue@webkit.org | edaf075 | 2012-02-02 20:46:43 +0000 | [diff] [blame] | 6 | <script src="resources/distance-model-testing.js"></script> |
| 7 | </head> |
| 8 | |
| 9 | <body> |
| 10 | <div id="description"></div> |
| 11 | <div id="console"></div> |
| 12 | |
| 13 | <script> |
| 14 | description("Test exponential distance model of AudioPannerNode."); |
| 15 | |
| 16 | function runTest() { |
commit-queue@webkit.org | edaf075 | 2012-02-02 20:46:43 +0000 | [diff] [blame] | 17 | window.jsTestIsAsync = true; |
| 18 | |
| 19 | // Create offline audio context. |
crogers@google.com | 24fec26 | 2012-12-12 22:35:44 +0000 | [diff] [blame] | 20 | context = new webkitOfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate); |
commit-queue@webkit.org | edaf075 | 2012-02-02 20:46:43 +0000 | [diff] [blame] | 21 | |
weinig@apple.com | d61d8c1 | 2016-08-27 02:01:11 +0000 | [diff] [blame] | 22 | // Temp panner node so we can get the exponential value. |
commit-queue@webkit.org | edaf075 | 2012-02-02 20:46:43 +0000 | [diff] [blame] | 23 | var tempPanner = context.createPanner(); |
weinig@apple.com | d61d8c1 | 2016-08-27 02:01:11 +0000 | [diff] [blame] | 24 | createTestAndRun(context, "exponential"); |
commit-queue@webkit.org | edaf075 | 2012-02-02 20:46:43 +0000 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | runTest(); |
commit-queue@webkit.org | edaf075 | 2012-02-02 20:46:43 +0000 | [diff] [blame] | 28 | |
| 29 | </script> |
commit-queue@webkit.org | edaf075 | 2012-02-02 20:46:43 +0000 | [diff] [blame] | 30 | </body> |
| 31 | </html> |