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

Issue 912803005: Looping AudioBufferSourceNodes stop only if duration is explicitly given. (Closed)

Created:
5 years, 10 months ago by Raymond Toy
Modified:
5 years, 10 months ago
CC:
blink-reviews
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Looping AudioBufferSourceNodes stop only if duration is explicitly given. An AudioBufferSourceNode that is looping should loop forever unless a grain duration is explicitly given. In particular, start(0, 0) should still loop forever. New test added, and updated one test in audiobuffersource-loop-comprehensive to make it clear that the looping source with duration stops at the right time. Manual test added for handling the case where the AudioBufferSourceNode buffer is assigned after start() has been called. This is difficult to test properly using an offline context. BUG=457099 TEST=audiobuffersource-loop-grain-no-duration.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190684

Patch Set 1 #

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Patch Set 4 : Rebase and fix tests #

Total comments: 11

Patch Set 5 : Update according to review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -33 lines) Patch
M LayoutTests/webaudio/audiobuffersource-loop-comprehensive.html View 1 2 3 4 4 chunks +41 lines, -22 lines 0 comments Download
M LayoutTests/webaudio/audiobuffersource-loop-comprehensive-expected.txt View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
A LayoutTests/webaudio/audiobuffersource-loop-grain-no-duration.html View 1 2 3 4 1 chunk +79 lines, -0 lines 0 comments Download
A + LayoutTests/webaudio/audiobuffersource-loop-grain-no-duration-expected.txt View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M LayoutTests/webaudio/audiobuffersource-start-expected.txt View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/webaudio/resources/audiobuffersource-testing.js View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
A ManualTests/webaudio/audiobuffersource-loop-grain-no-duration.html View 1 2 1 chunk +70 lines, -0 lines 0 comments Download
M Source/modules/webaudio/AudioBufferSourceNode.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M Source/modules/webaudio/AudioBufferSourceNode.cpp View 1 2 3 3 chunks +13 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (6 generated)
Raymond Toy
PTAL.
5 years, 10 months ago (2015-02-12 18:20:25 UTC) #2
hongchan
LGTM with nits. https://codereview.chromium.org/912803005/diff/20001/LayoutTests/webaudio/audiobuffersource-loop-457099.html File LayoutTests/webaudio/audiobuffersource-loop-457099.html (right): https://codereview.chromium.org/912803005/diff/20001/LayoutTests/webaudio/audiobuffersource-loop-457099.html#newcode11 LayoutTests/webaudio/audiobuffersource-loop-457099.html:11: <script> I think it's better to ...
5 years, 10 months ago (2015-02-12 18:36:58 UTC) #3
Raymond Toy
https://codereview.chromium.org/912803005/diff/20001/LayoutTests/webaudio/audiobuffersource-loop-457099.html File LayoutTests/webaudio/audiobuffersource-loop-457099.html (right): https://codereview.chromium.org/912803005/diff/20001/LayoutTests/webaudio/audiobuffersource-loop-457099.html#newcode11 LayoutTests/webaudio/audiobuffersource-loop-457099.html:11: <script> On 2015/02/12 18:36:58, hoch wrote: > I think ...
5 years, 10 months ago (2015-02-12 21:36:43 UTC) #4
Raymond Toy
PTAL. https://codereview.chromium.org/912803005/diff/20001/LayoutTests/webaudio/audiobuffersource-loop-457099.html File LayoutTests/webaudio/audiobuffersource-loop-457099.html (right): https://codereview.chromium.org/912803005/diff/20001/LayoutTests/webaudio/audiobuffersource-loop-457099.html#newcode11 LayoutTests/webaudio/audiobuffersource-loop-457099.html:11: <script> On 2015/02/12 18:36:58, hoch wrote: > I ...
5 years, 10 months ago (2015-02-13 20:07:06 UTC) #6
Raymond Toy
PTAL
5 years, 10 months ago (2015-02-17 19:13:38 UTC) #8
Ken Russell (switch to Gerrit)
LGTM based on the code and test. I read through the spec again but wasn't ...
5 years, 10 months ago (2015-02-19 01:52:36 UTC) #9
Raymond Toy
On 2015/02/19 01:52:36, Ken Russell wrote: > LGTM based on the code and test. I ...
5 years, 10 months ago (2015-02-19 19:25:32 UTC) #10
Raymond Toy
On 2015/02/19 01:52:36, Ken Russell wrote: > LGTM based on the code and test. I ...
5 years, 10 months ago (2015-02-19 22:43:41 UTC) #11
Ken Russell (switch to Gerrit)
Please ask hoch@ to carefully review the new test. Still LGTM overall but I didn't ...
5 years, 10 months ago (2015-02-20 22:24:58 UTC) #13
hongchan
LGTM with nits. https://codereview.chromium.org/912803005/diff/60001/LayoutTests/webaudio/audiobuffersource-loop-comprehensive.html File LayoutTests/webaudio/audiobuffersource-loop-comprehensive.html (right): https://codereview.chromium.org/912803005/diff/60001/LayoutTests/webaudio/audiobuffersource-loop-comprehensive.html#newcode14 LayoutTests/webaudio/audiobuffersource-loop-comprehensive.html:14: <div id="console"></div> These two <div>s should ...
5 years, 10 months ago (2015-02-20 22:49:46 UTC) #14
Raymond Toy
https://codereview.chromium.org/912803005/diff/60001/LayoutTests/webaudio/audiobuffersource-loop-comprehensive.html File LayoutTests/webaudio/audiobuffersource-loop-comprehensive.html (right): https://codereview.chromium.org/912803005/diff/60001/LayoutTests/webaudio/audiobuffersource-loop-comprehensive.html#newcode149 LayoutTests/webaudio/audiobuffersource-loop-comprehensive.html:149: // Start a loop with a duration less than ...
5 years, 10 months ago (2015-02-20 23:06:19 UTC) #15
hongchan
> And besides, we need to have some tests that still use oncomplete since > ...
5 years, 10 months ago (2015-02-20 23:15:44 UTC) #16
Raymond Toy
On 2015/02/20 23:15:44, hoch wrote: > > And besides, we need to have some tests ...
5 years, 10 months ago (2015-02-20 23:20:52 UTC) #17
Raymond Toy
On 2015/02/20 23:20:52, Raymond Toy wrote: > On 2015/02/20 23:15:44, hoch wrote: > > > ...
5 years, 10 months ago (2015-02-20 23:22:16 UTC) #18
hongchan
On 2015/02/20 at 23:20:52, rtoy wrote: > On 2015/02/20 23:15:44, hoch wrote: > > > ...
5 years, 10 months ago (2015-02-20 23:22:17 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/912803005/80001
5 years, 10 months ago (2015-02-23 17:28:16 UTC) #22
commit-bot: I haz the power
5 years, 10 months ago (2015-02-23 19:48:14 UTC) #23
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=190684

Powered by Google App Engine
This is Rietveld 408576698