OLD | NEW |
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/audiobuffersource-testing.js"></script> | 7 <script src="resources/audiobuffersource-testing.js"></script> |
8 <script src="../resources/js-test.js"></script> | 8 <script src="../resources/js-test.js"></script> |
9 </head> | 9 </head> |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 offsetFrame: 4, durationFrames: 4, renderFrames: 16, playbackRate: 1, expected
: [4,5,6,7,0,0,0,0,0,0,0,0,0,0,0,0] }, | 36 offsetFrame: 4, durationFrames: 4, renderFrames: 16, playbackRate: 1, expected
: [4,5,6,7,0,0,0,0,0,0,0,0,0,0,0,0] }, |
37 | 37 |
38 { description: "start(when, 7_frames): play with explicit non-zero offset near e
nd of buffer", | 38 { description: "start(when, 7_frames): play with explicit non-zero offset near e
nd of buffer", |
39 offsetFrame: 7, durationFrames: 1, renderFrames: 16, playbackRate: 1, expected
: [7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] }, | 39 offsetFrame: 7, durationFrames: 1, renderFrames: 16, playbackRate: 1, expected
: [7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] }, |
40 | 40 |
41 { description: "start(when, 8_frames): play with explicit offset at end of buffe
r", | 41 { description: "start(when, 8_frames): play with explicit offset at end of buffe
r", |
42 offsetFrame: 8, durationFrames: 0, renderFrames: 16, playbackRate: 1, expected
: [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] }, | 42 offsetFrame: 8, durationFrames: 0, renderFrames: 16, playbackRate: 1, expected
: [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] }, |
43 | 43 |
44 { description: "start(when, 9_frames): play with explicit offset past end of buf
fer", | 44 { description: "start(when, 9_frames): play with explicit offset past end of buf
fer", |
45 offsetFrame: 8, durationFrames: 0, renderFrames: 16, playbackRate: 1, expected
: [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] }, | 45 offsetFrame: 8, durationFrames: 0, renderFrames: 16, playbackRate: 1, expected
: [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] }, |
| 46 |
| 47 // When the duration exceeds the buffer, just play to the end of the buffer. |
| 48 // (This is different from the case when we're looping, which is tested in loop-
comprehensive.) |
| 49 { description: "start(when, 0, 15_frames): play with whole buffer, with long dur
ation (clipped)", |
| 50 offsetFrame: 0, durationFrames: 15, renderFrames: 16, playbackRate: 1, expecte
d: [0,1,2,3,4,5,6,7,0,0,0,0,0,0,0,0] }, |
46 | 51 |
47 // Enable test when AudioBufferSourceNode hack is fixed: https://bugs.webkit.org
/show_bug.cgi?id=77224 | 52 // Enable test when AudioBufferSourceNode hack is fixed: https://bugs.webkit.org
/show_bug.cgi?id=77224 |
48 // { description: "start(when, 3_frames, 3_frames): play a middle section with e
xplicit offset and duration", | 53 // { description: "start(when, 3_frames, 3_frames): play a middle section with e
xplicit offset and duration", |
49 // offsetFrame: 3, durationFrames: 3, renderFrames: 16, playbackRate: 1, expec
ted: [4,5,6,7,0,0,0,0,0,0,0,0,0,0,0,0] }, | 54 // offsetFrame: 3, durationFrames: 3, renderFrames: 16, playbackRate: 1, expec
ted: [4,5,6,7,0,0,0,0,0,0,0,0,0,0,0,0] }, |
50 | 55 |
51 ]; | 56 ]; |
52 | 57 |
53 var sampleRate = 44100; | 58 var sampleRate = 44100; |
54 var buffer; | 59 var buffer; |
55 var bufferFrameLength = 8; | 60 var bufferFrameLength = 8; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 context.startRendering(); | 104 context.startRendering(); |
100 } | 105 } |
101 | 106 |
102 runTest(); | 107 runTest(); |
103 successfullyParsed = true; | 108 successfullyParsed = true; |
104 | 109 |
105 </script> | 110 </script> |
106 | 111 |
107 </body> | 112 </body> |
108 </html> | 113 </html> |
OLD | NEW |