commit-queue@webkit.org | 183b9cc | 2012-02-03 04:08:50 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | |
| 3 | <html> |
| 4 | <head> |
commit-queue@webkit.org | 183b9cc | 2012-02-03 04:08:50 +0000 | [diff] [blame] | 5 | <script src="resources/audio-testing.js"></script> |
ap@apple.com | c8e7c72 | 2017-05-22 20:49:12 +0000 | [diff] [blame] | 6 | <script src="../resources/js-test.js"></script> |
commit-queue@webkit.org | 183b9cc | 2012-02-03 04:08:50 +0000 | [diff] [blame] | 7 | <script src="resources/biquad-testing.js"></script> |
| 8 | </head> |
| 9 | |
| 10 | <body> |
| 11 | |
| 12 | <div id="description"></div> |
| 13 | <div id="console"></div> |
| 14 | |
| 15 | <script> |
| 16 | description("Tests Biquad lowshelf filter."); |
| 17 | |
| 18 | function runTest() { |
commit-queue@webkit.org | 183b9cc | 2012-02-03 04:08:50 +0000 | [diff] [blame] | 19 | window.jsTestIsAsync = true; |
| 20 | |
| 21 | // Create offline audio context. |
crogers@google.com | 24fec26 | 2012-12-12 22:35:44 +0000 | [diff] [blame] | 22 | var context = new webkitOfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate); |
commit-queue@webkit.org | 183b9cc | 2012-02-03 04:08:50 +0000 | [diff] [blame] | 23 | |
| 24 | // Dummy filter to get filter type constant |
| 25 | var f = context.createBiquadFilter(); |
| 26 | |
| 27 | // The filters we want to test. |
| 28 | var filterParameters = [{cutoff : 0, q : 10, gain : 10 }, |
| 29 | {cutoff : 1, q : 10, gain : 10 }, |
| 30 | {cutoff : 0.25, q : 10, gain : 10 }, |
| 31 | ]; |
| 32 | |
weinig@apple.com | d61d8c1 | 2016-08-27 02:01:11 +0000 | [diff] [blame] | 33 | createTestAndRun(context, "lowshelf", filterParameters); |
commit-queue@webkit.org | 183b9cc | 2012-02-03 04:08:50 +0000 | [diff] [blame] | 34 | } |
| 35 | |
| 36 | runTest(); |
commit-queue@webkit.org | 183b9cc | 2012-02-03 04:08:50 +0000 | [diff] [blame] | 37 | |
| 38 | </script> |
commit-queue@webkit.org | 183b9cc | 2012-02-03 04:08:50 +0000 | [diff] [blame] | 39 | </body> |
| 40 | </html> |