Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/biquad-peaking.html

Issue 1885723003: Implement Biquad lowpass and highpass filters according to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <script src="resources/compatibility.js"></script> 5 <script src="resources/compatibility.js"></script>
6 <script src="resources/audio-testing.js"></script> 6 <script src="resources/audio-testing.js"></script>
7 <script src="../resources/js-test.js"></script> 7 <script src="../resources/js-test.js"></script>
8 <script src="resources/biquad-filters.js"></script> 8 <script src="resources/biquad-filters.js"></script>
9 <script src="resources/biquad-testing.js"></script> 9 <script src="resources/biquad-testing.js"></script>
10 </head> 10 </head>
(...skipping 17 matching lines...) Expand all
28 // Create offline audio context. 28 // Create offline audio context.
29 var context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, s ampleRate); 29 var context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, s ampleRate);
30 30
31 // The filters we want to test. 31 // The filters we want to test.
32 var filterParameters = [{cutoff : 0, q : 10, gain : 10 }, 32 var filterParameters = [{cutoff : 0, q : 10, gain : 10 },
33 {cutoff : 1, q : 10, gain : 10 }, 33 {cutoff : 1, q : 10, gain : 10 },
34 {cutoff : .5, q : 0, gain : 10 }, 34 {cutoff : .5, q : 0, gain : 10 },
35 {cutoff : 0.25, q : 10, gain : 10 }, 35 {cutoff : 0.25, q : 10, gain : 10 },
36 ]; 36 ];
37 37
38 createTestAndRun(context, "peaking", filterParameters); 38 createTestAndRun(context, "peaking", {
39 threshold: 5.8234e-8,
40 filterParameters: filterParameters
41 });
39 } 42 }
40 43
41 runTest(); 44 runTest();
42 successfullyParsed = true; 45 successfullyParsed = true;
43 46
44 </script> 47 </script>
45 48
46 </body> 49 </body>
47 </html> 50 </html>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/webaudio/biquad-notch.html ('k') | third_party/WebKit/LayoutTests/webaudio/biquad-tail.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698