blob: b83f2392efaec4cb1a05ffab6401d51e325827f8 [file] [log] [blame]
commit-queue@webkit.org183b9cc2012-02-03 04:08:50 +00001<!DOCTYPE html>
2
3<html>
4<head>
commit-queue@webkit.org183b9cc2012-02-03 04:08:50 +00005<script src="resources/audio-testing.js"></script>
ap@apple.comc8e7c722017-05-22 20:49:12 +00006<script src="../resources/js-test.js"></script>
commit-queue@webkit.org183b9cc2012-02-03 04:08:50 +00007<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>
16description("Tests Biquad lowshelf filter.");
17
18function runTest() {
commit-queue@webkit.org183b9cc2012-02-03 04:08:50 +000019 window.jsTestIsAsync = true;
20
21 // Create offline audio context.
crogers@google.com24fec262012-12-12 22:35:44 +000022 var context = new webkitOfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
commit-queue@webkit.org183b9cc2012-02-03 04:08:50 +000023
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.comd61d8c12016-08-27 02:01:11 +000033 createTestAndRun(context, "lowshelf", filterParameters);
commit-queue@webkit.org183b9cc2012-02-03 04:08:50 +000034}
35
36runTest();
commit-queue@webkit.org183b9cc2012-02-03 04:08:50 +000037
38</script>
commit-queue@webkit.org183b9cc2012-02-03 04:08:50 +000039</body>
40</html>