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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/Panner/hrtf-database.html

Issue 2741543002: Copy HRTF files to webaudio/resources/hrtf (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « BUILD.gn ('k') | third_party/WebKit/LayoutTests/webaudio/resources/hrtf/Composite.flac » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Test FLAC-encoded HRTF databse</title> 4 <title>Test FLAC-encoded HRTF databse</title>
5 <script src="../../resources/testharness.js"></script> 5 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script> 6 <script src="../../resources/testharnessreport.js"></script>
7 <script src="../resources/audit.js"></script> 7 <script src="../resources/audit.js"></script>
8 <script src="../resources/buffer-loader.js"></script> 8 <script src="../resources/buffer-loader.js"></script>
9 </head> 9 </head>
10 10
(...skipping 11 matching lines...) Expand all
22 audit.define({ 22 audit.define({
23 label: "loadfiles", 23 label: "loadfiles",
24 description: "Load HRTF database files" 24 description: "Load HRTF database files"
25 }, function (task, should) { 25 }, function (task, should) {
26 26
27 // Any valid context with the right sample rate will do. 27 // Any valid context with the right sample rate will do.
28 context = new OfflineAudioContext(1, 1, sampleRate); 28 context = new OfflineAudioContext(1, 1, sampleRate);
29 29
30 var bufferLoader = new BufferLoader( 30 var bufferLoader = new BufferLoader(
31 context, [ 31 context, [
32 "../../../Source/platform/audio/resources/Composite.wav", 32 "../resources/hrtf/Composite.wav",
33 "../../../Source/platform/audio/resources/Composite.flac", 33 "../resources/hrtf/Composite.flac",
34 ], 34 ],
35 function (bufferList) { 35 function (bufferList) {
36 should(bufferList.length, "Number of buffers loaded") 36 should(bufferList.length, "Number of buffers loaded")
37 .beEqualTo(2); 37 .beEqualTo(2);
38 wavBuffer = bufferList[0]; 38 wavBuffer = bufferList[0];
39 flacBuffer = bufferList[1]; 39 flacBuffer = bufferList[1];
40 task.done(); 40 task.done();
41 }); 41 });
42 42
43 bufferLoader.load(); 43 bufferLoader.load();
(...skipping 14 matching lines...) Expand all
58 .beEqualToArray(wavBuffer.getChannelData(k)); 58 .beEqualToArray(wavBuffer.getChannelData(k));
59 } 59 }
60 60
61 task.done(); 61 task.done();
62 }); 62 });
63 63
64 audit.run(); 64 audit.run();
65 </script> 65 </script>
66 </body> 66 </body>
67 </html> 67 </html>
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | third_party/WebKit/LayoutTests/webaudio/resources/hrtf/Composite.flac » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698